RFC: Java class registration (w/crtstuff change)

Per Bothner per@bothner.com
Mon Jul 30 14:36:00 GMT 2001


<green@peach.cygnus.co.uk.bothner.com> writes:

> The new class registration mechanism has the compiler storing pointers
> to classes requiring registration in a new section: .jcr (java class
> registration).  crtbegin and crtend are used to begin the list (with
> __JCR_LIST__) and NULL terminate it (at __JCR_END__).
> DO_GLOBAL_CTORS_BODY is modified to include a single call to libgcj's
> _Jv_RegisterClasses (made available via weak symbol).

I think this approach is winning.  Have you verified that the Right
Thing will happen for shared libraries loaded with dlopen?
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/



More information about the Java-patches mailing list