RFR(S): 7171703: JNI DefineClass crashes client VM when first parameter is NULL

serguei.spitsyn at oracle.com serguei.spitsyn at oracle.com
Mon Jun 4 11:07:20 PDT 2012


Looks good.

Thanks,
Serguei

On 6/4/12 7:27 AM, Frederic Parain wrote:
> Greetings,
>
> This is a code review request for the following bug:
>
>     7171703: JNI DefineClass crashes client VM when first parameter is 
> NULL
>
> Here's the URL for the webrev:
>
>     http://cr.openjdk.java.net/~fparain/7171703/webrev.00/
>
> The JNI spec doesn't the implementation to be robust against NULL
> arguments, however, the HotSpot implementation of this method in JDK6
> was "accidentally" able to handle it. A code modification in JDK7
> has changed this behavior, causing some crashes to applications
> relying on the VM ability to handle a first NULL argument. This
> changeset just restores the JDK6 behavior to preserve the
> backward compatibility.
>
> Thanks,
>
> Fred
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/attachments/20120604/2fdd4ea3/attachment.html 


More information about the hotspot-runtime-dev mailing list