changeset 1095:0d9acc513438

7901266: Redundant @Setup/@TearDown(Invocation) block in SingleShot mode. Summary: leave only the block in the stub itself.
author shade
date Tue, 20 Jan 2015 14:30:04 +0300
parents d40ed4e0fb5d
children 7098caa2753f
files jmh-core/src/main/java/org/openjdk/jmh/generators/core/BenchmarkGenerator.java
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/generators/core/BenchmarkGenerator.java	Tue Jan 20 13:45:06 2015 +0300
+++ b/jmh-core/src/main/java/org/openjdk/jmh/generators/core/BenchmarkGenerator.java	Tue Jan 20 14:30:04 2015 +0300
@@ -1003,15 +1003,11 @@
 
             iterationProlog(writer, 3, method, states);
 
-            invocationProlog(writer, 3, method, states, false);
-
             // measurement loop call
             writer.println(ident(3) + "RawResults res = new RawResults(control.benchmarkParams.getOpsPerInvocation());");
             writer.println(ident(3) + "int batchSize = control.iterationParams.getBatchSize();");
             writer.println(ident(3) + method.getName() + "_" + benchmarkKind.shortLabel() + JMH_STUB_SUFFIX + "(control, batchSize, res" + prefix(states.getArgList(method)) + ");");
 
-            invocationEpilog(writer, 3, method, states, false);
-
             writer.println(ident(3) + "control.preTearDown();");
 
             iterationEpilog(writer, 3, method, states);