Code review request: 8002273 NMT to report JNI memory leaks when -Xcheck:jni is on (original) (raw)
Karen Kinnear karen.kinnear at oracle.com
Thu Nov 8 11:21:51 PST 2012
- Previous message: Code review request: 8002273 NMT to report JNI memory leaks when -Xcheck:jni is on
- Next message: Code review request: 8002273 NMT to report JNI memory leaks when -Xcheck:jni is on
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Zhengyu,
Looks good and thank you for checking that with -Xcheck:jni.
I checked the documentation, and the -Xcheck:jni documentation includes examples, it is not intended to ensure that we document every detailed check that we made, so it appears that we don't need to add documentation here.
thanks, Karen
On Nov 8, 2012, at 12:23 PM, Zhengyu Gu wrote:
This fix is related to JDK-8001743: Overlapped thread stacks. The cause of 8001743 is that, an attached JNI thread exited without detaching the thread, so JVM will leak a JavaThread object that attached to the JNI thread.
The patch allows NMT to report such case when -Xcheck:jni VM option is specified. http://cr.openjdk.java.net/~zgu/8002273/webrev.00/ Thanks, -Zhengyu
- Previous message: Code review request: 8002273 NMT to report JNI memory leaks when -Xcheck:jni is on
- Next message: Code review request: 8002273 NMT to report JNI memory leaks when -Xcheck:jni is on
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]