This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: GC statistics (was Re: big project ported)
- To: Godmar Back <gback at cs dot utah dot edu>
- Subject: Re: GC statistics (was Re: big project ported)
- From: Kresten Krab Thorup <krab at daimi dot au dot dk>
- Date: 28 Oct 1999 10:50:59 +0200
- Cc: tromey at cygnus dot com (Tom Tromey), green at cygnus dot com, jsturm at sigma6 dot com, bryce at albatross dot co dot nz, java-discuss at sourceware dot cygnus dot com
- References: <199910271731.LAA01546@faith.cs.utah.edu>
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)