[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange bug related to soot.Scene



Ondrej LHOTAK wrote:
once. For applications where you need to run Soot more than once, the
solution we've been using is to start a separate java VM using
java.lang.Runtime exec(). I know that this is ugly, which is why we
are working on a fix.
Having worked so hard to get class-loaders to work in SableVM, I suggest a nicer solution. ;)

You can load Soot in a user-defined class loader. Everytime you need to "restart" Soot, you simply reload it in a new instance of the class loader.

Etienne


--
Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/
SableVM: http://www.sablevm.org/
SableCC: http://www.sablecc.org/