RFR: 8235355: Shenandoah: Resolve deadlock between OOM handler and nmethod lock

Roman Kennke rkennke at redhat.com
Wed Dec 4 20:02:55 UTC 2019

JDK-8235337 changed OOM scoping, but unfortunately it causes a deadlock.
See bug report for more details:


The proposed fix ensures that we're entering the nmethod lock and OOM
scope in the right and the same order always. It reverts JDK-8235337 and
puts an extra OOM scope on the path that caused the original bug.


Testing: hotspot_gc_shenandoah, specjvm with +aggressive and

Can I please get a review?


More information about the hotspot-gc-dev mailing list