changeset 28:6d9c5bd295d1

Fix auto-yielding on low CPU machines.
author shade
date Wed, 24 Jul 2013 12:33:08 +0400
parents f5c6d0f7fcd3
children 31111172517a
files harness/src/main/java/org/openjdk/jcstress/Options.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/harness/src/main/java/org/openjdk/jcstress/Options.java	Fri Jul 12 12:55:15 2013 +0400
+++ b/harness/src/main/java/org/openjdk/jcstress/Options.java	Wed Jul 24 12:33:08 2013 +0400
@@ -172,7 +172,7 @@
         }
 
         if (!set.hasArgument(cpus)) {
-            this.userCPUs = this.systemCPUs;
+            this.userCPUs = Math.max(4, this.systemCPUs);
         } else {
             this.userCPUs = set.valueOf(cpus);
         }