[BC] Patch: FYI: no more COMPACT_FIELDS

Bryce McKinlay mckinlay@redhat.com
Tue Sep 21 05:49:00 GMT 2004


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



More information about the Java-patches mailing list