class gc

Tom Tromey
Sat Feb 27 01:16:00 GMT 1999

>>>>> "Per" == Per Bothner <> writes:

Per> I don't remember the details, but the Boehm collector has a way
Per> to register objects with the GC.  So what you do is register all
Per> the statically allocated Classes with the GC on start-up.

Per> Actually, I don't see any need to register a Class with the GC;
Per> what we really need to do is register any static reference fields
Per> as global roots.

We don't currently do either of these.  Instead we let the Boehm GC
conservatively scan the data segment as if it were all roots.  Perhaps
not optimal, but certainly simple.


More information about the Java mailing list