-
Bug
-
Resolution: Fixed
-
P2
-
21, 23
-
b04
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8335417 | 23.0.1 | Aleksey Shipilev | P2 | Resolved | Fixed | b02 |
JDK-8335140 | 23 | Aleksey Shipilev | P2 | Resolved | Fixed | b29 |
JDK-8338672 | 21.0.5 | Aleksey Shipilev | P2 | Resolved | Fixed | b04 |
0) Various threads are waiting for the GC to hand out freed memory.
1) The GC is blocked on the Service_lock:
Mutex::lock_without_safepoint_check()
OopMapCache::trigger_cleanup()
ZGenerationYoung::pause_relocate_start()
ZGenerationYoung::collect(ZYoungType, ConcurrentGCTimer*)
ZDriverMinor::gc(ZDriverRequest const&)
ZThread::run_service()
2) The Service_lock is held by the ServiceThread, which is stalling because it is waiting for the GC to give it memory
PlatformMonitor::wait(unsigned long)
ZRelocateQueue::add_and_wait(ZForwarding*)
ZRelocate::relocate_object(ZForwarding*, zaddress_unsafe)
ZUncoloredRootProcessWeakOopClosure::do_root(zaddress_unsafe*)
ZNMethod::nmethod_oops_do_inner(nmethod*, OopClosure*)
ZBarrierSetNMethod::nmethod_entry_barrier(nmethod*)
JvmtiDeferredEventQueue::oops_do(OopClosure*, NMethodClosure*)
// vvv Lock taken in this frame vvv
ServiceThread::oops_do_no_frames(OopClosure*, NMethodClosure*)
ZStackWatermark::process_head(void*)
ZStackWatermark::start_processing_impl(void*)
StackWatermark::start_processing()
StackWatermark::on_safepoint()
SafepointMechanism::process(JavaThread*, bool, bool)
StringTable::clean_dead_entries(JavaThread*)
StringTable::do_concurrent_work(JavaThread*)
ServiceThread::service_thread_entry
- backported by
-
JDK-8335140 Generational ZGC: Deadlock after OopMap rewrites in 8331572
- Resolved
-
JDK-8335417 Generational ZGC: Deadlock after OopMap rewrites in 8331572
- Resolved
-
JDK-8338672 Generational ZGC: Deadlock after OopMap rewrites in 8331572
- Resolved
- relates to
-
JDK-8331572 Allow using OopMapCache outside of STW GC phases
- Resolved
- links to
-
Commit openjdk/jdk/05ff3185
-
Commit openjdk/jdk/d1510505
-
Commit(master) openjdk/jdk21u-dev/ed77abd4
-
Review openjdk/jdk/19800
-
Review openjdk/jdk/19851
-
Review(master) openjdk/jdk21u-dev/610