overhead of reflection info

Andrew Haley aph@redhat.com
Wed Feb 25 18:47:00 GMT 2004


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.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /