Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/concurrentMarkSweep/vmCMSOperations.hpp @ 2365:a181f3a124dd
6987703: iCMS: Intermittent hang with gc/gctests/CallGC/CallGC01 and +ExplicitGCInvokesConcurrent
Summary: Count enable_icms() and disable_icms() events so as to prevent inteference between concurrent calls, which can cause the iCMS thread to be left stranded in icms_wait() with an unserviced request and no young allocations to unwedge it.
Reviewed-by: jcoomes, poonam
author | ysr |
---|---|
date | Mon, 14 Mar 2011 21:52:24 -0700 |
parents | c798c277ddd1 |
children | fb69749583e8 |
comparison
equal
deleted
inserted
replaced
2364:04d1138b4cce | 2365:a181f3a124dd |
---|---|
126 | 126 |
127 | 127 |
128 // VM operation to invoke a concurrent collection of the heap as a | 128 // VM operation to invoke a concurrent collection of the heap as a |
129 // GenCollectedHeap heap. | 129 // GenCollectedHeap heap. |
130 class VM_GenCollectFullConcurrent: public VM_GC_Operation { | 130 class VM_GenCollectFullConcurrent: public VM_GC_Operation { |
131 bool _disabled_icms; | |
131 public: | 132 public: |
132 VM_GenCollectFullConcurrent(unsigned int gc_count_before, | 133 VM_GenCollectFullConcurrent(unsigned int gc_count_before, |
133 unsigned int full_gc_count_before, | 134 unsigned int full_gc_count_before, |
134 GCCause::Cause gc_cause) | 135 GCCause::Cause gc_cause) |
135 : VM_GC_Operation(gc_count_before, gc_cause, full_gc_count_before, true /* full */) { | 136 : VM_GC_Operation(gc_count_before, gc_cause, full_gc_count_before, true /* full */), |
137 _disabled_icms(false) | |
138 { | |
136 assert(FullGCCount_lock != NULL, "Error"); | 139 assert(FullGCCount_lock != NULL, "Error"); |
137 assert(UseAsyncConcMarkSweepGC, "Else will hang caller"); | 140 assert(UseAsyncConcMarkSweepGC, "Else will hang caller"); |
138 } | 141 } |
139 ~VM_GenCollectFullConcurrent() {} | 142 ~VM_GenCollectFullConcurrent() {} |
140 virtual VMOp_Type type() const { return VMOp_GenCollectFullConcurrent; } | 143 virtual VMOp_Type type() const { return VMOp_GenCollectFullConcurrent; } |