This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: overhead of reflection info
Jeff Sturm writes:
> On 25 Feb 2004, Tom Tromey wrote:
> > >>>>> "Hans" == Boehm, Hans <hans.boehm@hp.com> writes:
> >
> > Hans> There is a claim in _Jv_MarkObj comments that some data
> > Hans> structures referenced from class objects are allocated
> > Hans> pointerfree (even though they are not?) but then traced
> > Hans> correctly by _Jv_MarkObj. If this is indeed still correct, this
> > Hans> would have to be looked at carefully.
> >
> > Oh, yeah -- _Jv_MarkObj is always used for Class objects.
>
> But only classes loaded from bytecode, right? Those might not matter for
> a minimal runtime stripped of reflection info, interpreter, etc.
>
> I think compiled classes are still traced conservatively.
No they're not -- the bitmap is generated by the compiler. See
mark_reference_fields() in java/boehm.c.
Andrew.