Review request (S): 6539281 -Xcheck:jni should validate char* argument to ReleaseStringUTFChars
staffan.larsen at oracle.com
Thu Dec 2 06:18:06 PST 2010
Validate that ReleaseStringUTFChars/ReleaseStringChars is called with something allocated by GetStringUTChars/GetStringChars when running with -Xcheck:jni. This is accomplished by adding a well-known tag in the memory immediately before the pointer that is returned to the user. This tag is verified in ReleaseStringUTFChars.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-runtime-dev