comparison src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp @ 546:05c6d52fa7a9

6690928: Use spinning in combination with yields for workstealing termination. Summary: Substitute a spin loop for most calls to yield() to reduce the stress on the system. Reviewed-by: tonyp
author jmasa
date Sun, 08 Feb 2009 13:18:01 -0800
parents 7d7a7c599c17
children 0fbdb4381b99 c6c601a0f2d6
comparison
equal deleted inserted replaced
545:58054a18d735 546:05c6d52fa7a9
360 NOT_PRODUCT(ref_processor()->verify_no_references_recorded()); 360 NOT_PRODUCT(ref_processor()->verify_no_references_recorded());
361 361
362 if (PrintHeapAtGC) { 362 if (PrintHeapAtGC) {
363 Universe::print_heap_after_gc(); 363 Universe::print_heap_after_gc();
364 } 364 }
365
366 #ifdef TRACESPINNING
367 ParallelTaskTerminator::print_termination_counts();
368 #endif
365 } 369 }
366 370
367 bool PSMarkSweep::absorb_live_data_from_eden(PSAdaptiveSizePolicy* size_policy, 371 bool PSMarkSweep::absorb_live_data_from_eden(PSAdaptiveSizePolicy* size_policy,
368 PSYoungGen* young_gen, 372 PSYoungGen* young_gen,
369 PSOldGen* old_gen) { 373 PSOldGen* old_gen) {