Review request (S): 6539281 -Xcheck:jni should validate char* argument to ReleaseStringUTFChars

Staffan Larsen staffan.larsen at oracle.com
Thu Dec 2 06:18:06 PST 2010


http://cr.openjdk.java.net/~sla/6539281/webrev.00/

 

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. 

 

Thanks,

/Staffan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/attachments/20101202/10ca9eaa/attachment.html 


More information about the hotspot-runtime-dev mailing list