aboutsummaryrefslogtreecommitdiff
path: root/src/share/vm/memory
diff options
context:
space:
mode:
authorjmasa <none@none>2009-02-08 13:18:01 -0800
committerjmasa <none@none>2009-02-08 13:18:01 -0800
commitfdeb5e6a6d5aa02f88759dff40b3512334e51e86 (patch)
treefd9d8827471b858608dbff21013ef61461110454 /src/share/vm/memory
parentfb0380030e41433ce11ffa2ebd470a474c83637e (diff)
downloadjdk8u_hotspot-fdeb5e6a6d5aa02f88759dff40b3512334e51e86.tar.gz
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
Diffstat (limited to 'src/share/vm/memory')
-rw-r--r--src/share/vm/memory/genCollectedHeap.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/share/vm/memory/genCollectedHeap.cpp b/src/share/vm/memory/genCollectedHeap.cpp
index 41dfac1b5..5bb817f02 100644
--- a/src/share/vm/memory/genCollectedHeap.cpp
+++ b/src/share/vm/memory/genCollectedHeap.cpp
@@ -610,6 +610,10 @@ void GenCollectedHeap::do_collection(bool full,
Universe::print_heap_after_gc();
}
+#ifdef TRACESPINNING
+ ParallelTaskTerminator::print_termination_counts();
+#endif
+
if (ExitAfterGCNum > 0 && total_collections() == ExitAfterGCNum) {
tty->print_cr("Stopping after GC #%d", ExitAfterGCNum);
vm_exit(-1);