changeset 92:12b90923045c

Remove first call peeling in synchronize iterations code. Contributed-by: Sergey Kuksenko <sergey.kuksenko@oracle.com>
author shade
date Tue, 11 Jun 2013 18:13:46 +0400
parents 3ba7f2895341
children d8ec3efea915
files jmh-core/src/main/java/org/openjdk/jmh/processor/internal/GenerateMicroBenchmarkProcessor.java
diffstat 1 files changed, 0 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/processor/internal/GenerateMicroBenchmarkProcessor.java	Tue Jun 11 18:08:27 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/processor/internal/GenerateMicroBenchmarkProcessor.java	Tue Jun 11 18:13:46 2013 +0400
@@ -723,12 +723,6 @@
 
             iterationProlog(writer, 3, method, states);
 
-
-            // synchronize iterations prolog: first peeled iteration
-            invocationProlog(writer, 3, method, states, false);
-            writer.println(ident(3) + emitCall(method, states) + ';');
-            invocationEpilog(writer, 3, method, states, false);
-
             // synchronize iterations prolog: announce ready
             writer.println(ident(3) + "global.announceWarmupReady();");
 
@@ -818,11 +812,6 @@
 
             iterationProlog(writer, 3, method, states);
 
-            // synchronize iterations prolog: first peeled iteration
-            invocationProlog(writer, 3, method, states, false);
-            writer.println(ident(3) + emitCall(method, states) + ';');
-            invocationEpilog(writer, 3, method, states, false);
-
             // synchronize iterations prolog: announce ready
             writer.println(ident(3) + "global.announceWarmupReady();");
 
@@ -933,11 +922,6 @@
 
             iterationProlog(writer, 3, method, states);
 
-            // synchronize iterations prolog: first peeled iteration
-            invocationProlog(writer, 3, method, states, false);
-            writer.println(ident(3) + emitCall(method, states) + ';');
-            invocationEpilog(writer, 3, method, states, false);
-
             // synchronize iterations prolog: announce ready
             writer.println(ident(3) + "global.announceWarmupReady();");