GC statistics (was Re: big project ported)

Kresten Krab Thorup krab@daimi.au.dk
Thu Oct 28 01:51:00 GMT 1999


Godmar Back <gback@cs.utah.edu> writes:
> [*] This leads me to ask a question about gcj's classloader support.
> I understand that Kresten's interpreter allows for dynamically loaded
> classes. My question is this:
>> Can I have any mixture of interpreted and compiled classes in my system?
> In other words, can compiled classes refer to interpreted classes and
> vice versa? Or is it such that interpreted classes can only refer to
> compiled classes, but not the other way around?

You can have an arbitrary mix, and they can refer and call each other.
The layout of interpreted objects is the same as for their compiled
counterparts, including vtable layout, etc.
Interpreted classes have two extra fields, which is the list of
interpreted methods and the list of field initializers; but otherwise
they are also the same as their comiled friends.
This interpreted methods field is only there for gc marking purposes.
The interpreted methods are normally used directly from the gcc-style
trampolines which are installed in the vtables.
-- Kresten
 Kresten Krab Thorup "I like my eggs ploded"
 Department of Computer Science, University of Aarhus
 Aabogade 34, DK-8200 Aarhus N, Denmark
 +45 8942 5665 (office), +45 2343 4626 (mobile)


More information about the Java mailing list

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