hg: hsx/hotspot-gc/hotspot: 7147724: G1: hang in SurrogateLockerThread::manipulatePLL
john.cuthbertson at oracle.com
john.cuthbertson at oracle.com
Wed Mar 21 20:12:19 UTC 2012
Changeset: 64bf7c8270cb
Author: johnc
Date: 2012-03-12 14:59 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/64bf7c8270cb
7147724: G1: hang in SurrogateLockerThread::manipulatePLL
Summary: Attempting to initiate a marking cycle when allocating a humongous object can, if a marking cycle is successfully initiated by another thread, result in the allocating thread spinning until the marking cycle is complete. Eliminate a deadlock between the main ConcurrentMarkThread, the SurrogateLocker thread, the VM thread, and a mutator thread waiting on the SecondaryFreeList_lock (while free regions are going to become available) by not manipulating the pending list lock during the prologue and epilogue of the cleanup pause.
Reviewed-by: brutisso, jcoomes, tonyp
! src/share/vm/gc_implementation/g1/concurrentMarkThread.cpp
! src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
! src/share/vm/gc_implementation/g1/vm_operations_g1.cpp
! src/share/vm/gc_implementation/g1/vm_operations_g1.hpp
More information about the hotspot-gc-dev
mailing list