changeset 296:1098723eff36

Randomize the Blackhole start in order to dodge write with Blackhole.consumeCPU(0).
author shade
date Tue, 03 Dec 2013 22:44:02 +0400
parents 6c41487eb634
children dc7e95227834
files jmh-core/src/main/java/org/openjdk/jmh/logic/BlackHole.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/logic/BlackHole.java	Tue Dec 03 16:40:23 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/logic/BlackHole.java	Tue Dec 03 22:44:02 2013 +0400
@@ -375,7 +375,7 @@
         }
     }
 
-    public static volatile long consumedCPU = 42;
+    public static volatile long consumedCPU = System.nanoTime();
 
     /**
      * Consume some amount of time tokens.