Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/parallelScavenge/psScavenge.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 | 27a80744a83b |
children | 0fbdb4381b99 |
comparison
equal
deleted
inserted
replaced
545:58054a18d735 | 546:05c6d52fa7a9 |
---|---|
613 scavenge_entry.ticks(), scavenge_midpoint.ticks(), | 613 scavenge_entry.ticks(), scavenge_midpoint.ticks(), |
614 scavenge_exit.ticks()); | 614 scavenge_exit.ticks()); |
615 gc_task_manager()->print_task_time_stamps(); | 615 gc_task_manager()->print_task_time_stamps(); |
616 } | 616 } |
617 | 617 |
618 #ifdef TRACESPINNING | |
619 ParallelTaskTerminator::print_termination_counts(); | |
620 #endif | |
621 | |
618 return !promotion_failure_occurred; | 622 return !promotion_failure_occurred; |
619 } | 623 } |
620 | 624 |
621 // This method iterates over all objects in the young generation, | 625 // This method iterates over all objects in the young generation, |
622 // unforwarding markOops. It then restores any preserved mark oops, | 626 // unforwarding markOops. It then restores any preserved mark oops, |