Serious bug in _Jv_InitPrimClass (I think)
Bryce McKinlay
mckinlay@redhat.com
Sun Jul 25 21:48:00 GMT 2004
Peter Blemel wrote:
> if (sig != 'V')
> _Jv_NewArrayClass (cl, NULL, (_Jv_VTable *) array_vtable);
>
> which is the root of all evil in that it starts the chain of events
> leading to my doom. In effect, I propose to initialize all non-array
> primitives first and then come back and call _Jv_NewArrayClass for
> everything but the void class.
>
> What do you think?
Nasty. Thanks for the detailed bug report.
I'm pretty sure it is redundant, as well as dangerous, to create the
array classes here, we can just get rid of this code and let
_Jv_NewPrimArray take care of creating them on demand. I'm going to
check in the attached patch - please let me know if this fixes your problem.
Regards
Bryce
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libjava-primclass-init.patch
Type: text/x-patch
Size: 4078 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040725/99ff12f2/attachment.bin>
More information about the Java-patches
mailing list