This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: class metadata (was Re: GCJ information)
Bryce McKinlay wrote:
> Hmm, how does a _Jv_Method get associated with the code pointer for the
> method? Do these go in the _TypeTable too?
I've phrased the discussion in terms of fields first, since those are
simpler. It may make sense to have a combine type/name/code array.
(We may want a separate per-class array for static fields, with the
pointer fields (except for RawData) first, for the sake of GC.)
> Also, I don't see a convenient way of storing the vtable (and itable)
> offset/index for a method without breaking the const-ness of the
> _Jv_Method, for --indirect-dispatch.
My job is hand-waving; the hard stuff I leave to you ..
Seriously, I'm sketching out an idea, but it clearly needs quite
a bit more detail work.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/