Mercurial > hg > graal-compiler
comparison src/share/vm/memory/genCollectedHeap.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 | e9be0e04635a |
children | 0fbdb4381b99 c6c601a0f2d6 |
comparison
equal
deleted
inserted
replaced
545:58054a18d735 | 546:05c6d52fa7a9 |
---|---|
608 | 608 |
609 if (PrintHeapAtGC) { | 609 if (PrintHeapAtGC) { |
610 Universe::print_heap_after_gc(); | 610 Universe::print_heap_after_gc(); |
611 } | 611 } |
612 | 612 |
613 #ifdef TRACESPINNING | |
614 ParallelTaskTerminator::print_termination_counts(); | |
615 #endif | |
616 | |
613 if (ExitAfterGCNum > 0 && total_collections() == ExitAfterGCNum) { | 617 if (ExitAfterGCNum > 0 && total_collections() == ExitAfterGCNum) { |
614 tty->print_cr("Stopping after GC #%d", ExitAfterGCNum); | 618 tty->print_cr("Stopping after GC #%d", ExitAfterGCNum); |
615 vm_exit(-1); | 619 vm_exit(-1); |
616 } | 620 } |
617 } | 621 } |