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

Keith McGuigan keith.mcguigan at oracle.com
Mon Jun 4 08:44:55 PDT 2012


Looks good.

--
- Keith

On 6/4/2012 10: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
>


More information about the hotspot-runtime-dev mailing list