This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [BC] Patch: FYI: no more COMPACT_FIELDS


Per Bothner wrote:

Tom Tromey wrote:

We've never used the COMPACT_FIELDS code.  I am getting rid of it.  If
someone needs it, they can resurrect it easily enough.


I think I put this in, as a sketch of some changes we might try
to compact and un-relocate the reflection stuff.  (By "un-relocate"
I refer to the goal of mimizing the need for the dynamic linker to
perform relocations.  Idealy, most of the metadata should be in
shared readonly memory until the class is initialized.)

If people have a better plan, so much the better.  What was there
certainly wasn't enough even to be suggestive.


Yeah, once the initial implementation of the BC-ABI is up and running, I want to look at pointer-free metadata. The idea is that rather than have the compiler emit java.lang.Class objects, it will emit class descriptors. The runtime will create the actual java.lang.Class when the class is loaded. The metadata could use PC-relative encoding for things like function pointers.

Regards

Bryce


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