Mon, 21 Aug 2017 11:34:41 -0400
6651256: jstack: DeleteGlobalRef method call doesn't lead to descreasing of global refs count shown by jstack
Summary: jni_DeleteGlobalRef does not really release the jni handle, instead, set the handle point to JNIHandles::_deleted_handle which holds an oop instance (java/lang/Object) in Java heap and never be GC'ed. When counting number of global reference, it counts all the handles on the chain list, which includes the already deleted ones.
Reviewed-by: zgu, sla, coleenp
Contributed-by: yumin.qi@oracle.com
kamg@526 | 1 | ^build/ |
duke@435 | 2 | ^dist/ |
ohair@1490 | 3 | /nbproject/private/ |
never@1155 | 4 | ^src/share/tools/hsdis/build/ |
never@657 | 5 | ^src/share/tools/IdealGraphVisualizer/[a-zA-Z0-9]*/build/ |
never@657 | 6 | ^src/share/tools/IdealGraphVisualizer/build/ |
never@657 | 7 | ^src/share/tools/IdealGraphVisualizer/dist/ |
ohair@2796 | 8 | ^.hgtip |
dcubed@3202 | 9 | .DS_Store |