FYI: Fix registration of array classes

Bryce McKinlay mckinlay@redhat.com
Thu May 19 22:22:00 GMT 2005


We were not correctly registering Array classes with their initiating 
classloader. Worse, _Jv_RegisterClass was being called, which should now 
only be used for native classes.

There is a small problem in that the first array classes are created 
very early during VM bootstrapping, when the bootstrap classloader has 
not been constructed yet. This patch works around that by ignoring them, 
which probably isn't the right thing to do, but its no worse than what 
we were doing already. I've added a FIXME with a suggestion of how this 
could be handled.

I'm checking this in.

Bryce


-------------- next part --------------
A non-text attachment was scrubbed...
Name: libjava-array-classloader.patch
Type: text/x-patch
Size: 1211 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20050519/6674f316/attachment.bin>


More information about the Java-patches mailing list