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


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

Re: Java: add Class protection domain field


Bryce McKinlay <bryce@albatross.co.nz> writes:

> As the layout of java.lang.Class is dictated by the compiler, a
> compiler patch is required to add this new field.

While we're at it, would it make sense to "inline" the idt field into
Class?  I.e. change its type from (union _Jv_IDispatchTable*) to
plain (union _Jv_IDispatchTable)?  That saves one pointer indirection on
each use of the table.  It should perhaps also be moved earlier
in the class object, so it is more likely it can be address by a small
offset.  (Most of the fields of a Class are only used for "reflection";
the idt field is used for "real" computation.)
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/


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