This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the GCJ project. See the GCJ home page for more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: class gc


Godmar> Either you'll need to check on the collector side that you
Godmar> don't mark anything you haven't allocated.

This is what we do right now.  That's because the Boehm collector is
smart about this sort of thing, though -- not from any real plan.

Godmar> What do you think?  Is this currently a problem in gcj at all
Godmar> (given that maybe all class objects are in the data segment
Godmar> and hence there may be no need to mark them at all?)

Not all class objects are in the data section.  Classes representing
array objects are allocated on the heap.

Presumably we'll deal with this somehow when we do the next round of
GC work.  I don't know when that will be.

FWIW it's possible that more things will be moved into the data
section.  For instance some arrays could be put there.

Tom