bugs.java.com
JDK-4836743 - Java Issue Tracker
Calls to the JNI function Get<type>ArrayElements() normally return a pointer to a copy of the specified array. Callers can use this pointer to access ...
Calls to the JNI function Get<type>ArrayElements() normally return a pointer to a copy of the specified array. Callers can use this pointer to access ...
The behaviour can even be "cloaked" by using java.util.regex classes: Matcher.group() etc. which seem to use substring internally for String extraction. This way it's nearly impossible to detect the memory leak. This behaviour is totally independent of OS, Java Version, VM type etc.