changeset 332:acec859bce0e

Runners: trim down the number of VM threads, making headroom for heavily-parallel machines that execute multiple tests simultaneously.
author shade
date Fri, 21 Oct 2016 20:11:53 +0200
parents 1c029a6b4a20
children 744601228ec7
files jcstress-core/src/main/java/org/openjdk/jcstress/vm/VMSupport.java
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jcstress-core/src/main/java/org/openjdk/jcstress/vm/VMSupport.java	Fri Oct 21 19:56:25 2016 +0200
+++ b/jcstress-core/src/main/java/org/openjdk/jcstress/vm/VMSupport.java	Fri Oct 21 20:11:53 2016 +0200
@@ -62,6 +62,22 @@
                 "-XX:+UnlockDiagnosticVMOptions",
                 SimpleTestMain.class);
 
+        detect("Trimming down the number of compiler threads",
+                "-XX:CICompilerCount=4",
+                SimpleTestMain.class);
+
+        detect("Trimming down the number of parallel GC threads",
+                "-XX:ParallelGCThreads=4",
+                SimpleTestMain.class);
+
+        detect("Trimming down the number of concurrent GC threads",
+                "-XX:ConcGCThreads=4",
+                SimpleTestMain.class);
+
+        detect("Trimming down the number of G1 concurrent refinement GC threads",
+                "-XX:G1ConcRefinementThreads=4",
+                SimpleTestMain.class);
+
         detect("Testing @Contended works on all results",
                 "-XX:-RestrictContended",
                 ContendedTestMain.class);