changeset 190:fde33cbb4ced

Tune up sampling start to get the first sample always.
author shade
date Fri, 27 Sep 2013 11:11:04 +0400
parents c6ec28d46af3
children 1a562b8e78b0
files jmh-core/src/main/java/org/openjdk/jmh/processor/internal/GenerateMicroBenchmarkProcessor.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/processor/internal/GenerateMicroBenchmarkProcessor.java	Fri Sep 27 11:04:20 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/processor/internal/GenerateMicroBenchmarkProcessor.java	Fri Sep 27 11:11:04 2013 +0400
@@ -936,7 +936,7 @@
             writer.println("        SampleBuffer buffer = new SampleBuffer();");
             writer.println("        long realTime = 0;");
             writer.println("        long rnd = System.nanoTime();");
-            writer.println("        long rndMask = 1;");
+            writer.println("        long rndMask = 0;");
             writer.println("        long time = 0;");
             writer.println("        do {");