Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.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 | b27c885f75f9 |
children | 0fbdb4381b99 c6c601a0f2d6 |
comparison
equal
deleted
inserted
replaced
545:58054a18d735 | 546:05c6d52fa7a9 |
---|---|
2201 INT64_FORMAT, | 2201 INT64_FORMAT, |
2202 marking_start.ticks(), compaction_start.ticks(), | 2202 marking_start.ticks(), compaction_start.ticks(), |
2203 collection_exit.ticks()); | 2203 collection_exit.ticks()); |
2204 gc_task_manager()->print_task_time_stamps(); | 2204 gc_task_manager()->print_task_time_stamps(); |
2205 } | 2205 } |
2206 | |
2207 #ifdef TRACESPINNING | |
2208 ParallelTaskTerminator::print_termination_counts(); | |
2209 #endif | |
2206 } | 2210 } |
2207 | 2211 |
2208 bool PSParallelCompact::absorb_live_data_from_eden(PSAdaptiveSizePolicy* size_policy, | 2212 bool PSParallelCompact::absorb_live_data_from_eden(PSAdaptiveSizePolicy* size_policy, |
2209 PSYoungGen* young_gen, | 2213 PSYoungGen* young_gen, |
2210 PSOldGen* old_gen) { | 2214 PSOldGen* old_gen) { |