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

Re: Strange bug related to soot.Scene



Etienne, does that mean a class can be loaded by more than two different
class loaders at the same time? and will have two VM objects representing
the same class at the same time?

Cheers,
Feng

On Wed, 19 Feb 2003, Prof. Etienne M. Gagnon wrote:

> 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/
>
>