comparison src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.inline.hpp @ 6817:f81a7c0c618d

7199349: NPG: PS: Crash seen in jprt Reviewed-by: johnc
author jmasa
date Wed, 03 Oct 2012 08:08:52 -0700
parents da91efe96a93
children 22b8d3d181d9
comparison
equal deleted inserted replaced
6816:87ac5c0a404d 6817:f81a7c0c618d
134 // Flush and fill 134 // Flush and fill
135 _old_lab.flush(); 135 _old_lab.flush();
136 136
137 HeapWord* lab_base = old_gen()->cas_allocate(OldPLABSize); 137 HeapWord* lab_base = old_gen()->cas_allocate(OldPLABSize);
138 if(lab_base != NULL) { 138 if(lab_base != NULL) {
139 #ifdef ASSERT
140 // Delay the initialization of the promotion lab (plab).
141 // This exposes uninitialized plabs to card table processing.
142 if (GCWorkerDelayMillis > 0) {
143 os::sleep(Thread::current(), GCWorkerDelayMillis, false);
144 }
145 #endif
139 _old_lab.initialize(MemRegion(lab_base, OldPLABSize)); 146 _old_lab.initialize(MemRegion(lab_base, OldPLABSize));
140 // Try the old lab allocation again. 147 // Try the old lab allocation again.
141 new_obj = (oop) _old_lab.allocate(new_obj_size); 148 new_obj = (oop) _old_lab.allocate(new_obj_size);
142 } 149 }
143 } 150 }