Package org.openjdk.jmh.runner
Class InfraControlL2
- java.lang.Object
-
- org.openjdk.jmh.runner.InfraControlL0
-
- org.openjdk.jmh.runner.InfraControlL1
-
- org.openjdk.jmh.runner.InfraControlL2
-
- Direct Known Subclasses:
InfraControlL3
abstract class InfraControlL2 extends InfraControlL1
-
-
Field Summary
Fields Modifier and Type Field Description BenchmarkParamsbenchmarkParamsbooleanisDoneFlag that checks for time expiration.booleanisFailingFlag that checks for failure experienced by any measurement thread.IterationParamsiterationParamsbooleanlastIterationControlnotifyControljava.util.concurrent.CountDownLatchpreSetupjava.util.concurrent.CountDownLatchpreTearDownprivate booleanshouldSynchIterationsprivate intthreadsbooleanvolatileSpoilerjava.util.concurrent.CountDownLatchwarmdownDonebooleanwarmdownShouldWaitjava.util.concurrent.atomic.AtomicIntegerwarmdownVisitedjava.util.concurrent.CountDownLatchwarmupDonebooleanwarmupShouldWaitjava.util.concurrent.atomic.AtomicIntegerwarmupVisited
-
Constructor Summary
Constructors Constructor Description InfraControlL2(BenchmarkParams benchmarkParams, IterationParams iterationParams, java.util.concurrent.CountDownLatch preSetup, java.util.concurrent.CountDownLatch preTearDown, boolean lastIteration, Control notifyControl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidannounceWarmdownReady()voidannounceWarmupReady()voidawaitWarmdownReady()voidawaitWarmupReady()java.lang.StringgetParam(java.lang.String name)
-
-
-
Field Detail
-
isDone
public volatile boolean isDone
Flag that checks for time expiration. This is specifically the public field, so to spare one virtual call.
-
isFailing
public volatile boolean isFailing
Flag that checks for failure experienced by any measurement thread. This is specifically the public field, so to spare one virtual call.
-
volatileSpoiler
public volatile boolean volatileSpoiler
-
preSetup
public final java.util.concurrent.CountDownLatch preSetup
-
preTearDown
public final java.util.concurrent.CountDownLatch preTearDown
-
lastIteration
public final boolean lastIteration
-
warmupVisited
public final java.util.concurrent.atomic.AtomicInteger warmupVisited
-
warmdownVisited
public final java.util.concurrent.atomic.AtomicInteger warmdownVisited
-
warmupShouldWait
public volatile boolean warmupShouldWait
-
warmdownShouldWait
public volatile boolean warmdownShouldWait
-
warmupDone
public final java.util.concurrent.CountDownLatch warmupDone
-
warmdownDone
public final java.util.concurrent.CountDownLatch warmdownDone
-
benchmarkParams
public final BenchmarkParams benchmarkParams
-
iterationParams
public final IterationParams iterationParams
-
notifyControl
public final Control notifyControl
-
shouldSynchIterations
private final boolean shouldSynchIterations
-
threads
private final int threads
-
-
Constructor Detail
-
InfraControlL2
public InfraControlL2(BenchmarkParams benchmarkParams, IterationParams iterationParams, java.util.concurrent.CountDownLatch preSetup, java.util.concurrent.CountDownLatch preTearDown, boolean lastIteration, Control notifyControl)
-
-