This is a fragment from my review of the fix:
8153711: [REDO] JDWP: Memory Leak: GlobalRefs never deleted when processing invokeMethod command
It seems, there are more places where an invokerLock critical section is missed.
The following functions:
- invokeConstructor
- invokeStatic
- invokeNonvirtual
- invokeVirtual
- saveGlobalRef
These functions are called from the invoker_doInvoke() that we already had a problem with.
8153711: [REDO] JDWP: Memory Leak: GlobalRefs never deleted when processing invokeMethod command
It seems, there are more places where an invokerLock critical section is missed.
The following functions:
- invokeConstructor
- invokeStatic
- invokeNonvirtual
- invokeVirtual
- saveGlobalRef
These functions are called from the invoker_doInvoke() that we already had a problem with.
- relates to
-
JDK-8154529 some places in the invoke.c that use InvokeRequest* not protected with invokerLock
- Resolved
-
JDK-8153711 [REDO] JDWP: Memory Leak: GlobalRefs never deleted when processing invokeMethod command
- Resolved
-
JDK-8193879 Java debugger hangs on method invocation
- Resolved