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

Frederic Parain frederic.parain at oracle.com
Mon Jun 4 07:27:30 PDT 2012


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

-- 
Frederic Parain - Oracle
Grenoble Engineering Center - France
Phone: +33 4 76 18 81 17
Email: Frederic.Parain at Oracle.com



More information about the hotspot-runtime-dev mailing list