RFR (S) JDK-6311046: -Xcheck:jni should support checking of GetPrimitiveArrayCritical
david.simms at oracle.com
Mon May 5 11:37:40 UTC 2014
Web review: http://cr.openjdk.java.net/~dsimms/6311046/rev2/
Cleaned up the "hand rolled" memory bounds checking in
os::malloc/realloc/free and type checking in checked JNI (GetString*),
and unified into a single helper class "FencedMemory". Added some extra
checks to checked JNI (release mode).
There is now some extra debugging support for free/release operations,
FencedMemory::release_for_freeing()" will now mark user bytes with
"freeBlockPad", which did yeld a result when testing:
Found a minor bug in CompilerQueue (hence CC compiler ML), shouldn't be
a problem in practice (probably won't crash), but the code is
incorrect...and now fixed here.
Ran on all platforms:
* jteg jdk_core & jdk_svc
* "RT nightly".
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-compiler-dev