On Don, 2004-05-13 at 14:56, Erik Corry wrote: > On Thu, May 13, 2004 at 08:40:31AM -0400, David Hovemeyer wrote: > > On Thu, May 13, 2004 at 12:54:41AM +0200, Daniel Schregenberger wrote: > > > > There might also be some ways to solve your problem... > > > > > > Yeah, it looks as if I have to think of one :) > > > > You might want to consider using Jikes RVM instead of Sun's JVM: > > What I'm doing is to put all the objects in a hash table. That means > you can associate whatever info you want with them. You have to > make sure that you use System.identityhashcode and the == operator, > you have to use weak references (unless you don't mind no garbage > collection occurring) and you have to be careful that your own > objects (eg the WeakReferences themselves) don't get put into the > system. > > Apart from that it's quite simple. :-)
I was thinking about this approach too. There's a high probability that I will try it this way now. Thanks for pointing out the difficult parts! -- Daniel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
