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
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal BenchmarkParams
boolean
Flag that checks for time expiration.boolean
Flag that checks for failure experienced by any measurement thread.final IterationParams
final boolean
final Control
final CountDownLatch
final CountDownLatch
private final boolean
private final int
boolean
final CountDownLatch
boolean
final AtomicInteger
final CountDownLatch
boolean
final AtomicInteger
-
Constructor Summary
ConstructorsConstructorDescriptionInfraControlL2
(BenchmarkParams benchmarkParams, IterationParams iterationParams, CountDownLatch preSetup, CountDownLatch preTearDown, boolean lastIteration, Control notifyControl) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
-
Field Details
-
isDone
public volatile boolean isDoneFlag that checks for time expiration. This is specifically the public field, so to spare one virtual call. -
isFailing
public volatile boolean isFailingFlag 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
-
preTearDown
-
lastIteration
public final boolean lastIteration -
warmupVisited
-
warmdownVisited
-
warmupShouldWait
public volatile boolean warmupShouldWait -
warmdownShouldWait
public volatile boolean warmdownShouldWait -
warmupDone
-
warmdownDone
-
benchmarkParams
-
iterationParams
-
notifyControl
-
shouldSynchIterations
private final boolean shouldSynchIterations -
threads
private final int threads
-
-
Constructor Details
-
InfraControlL2
public InfraControlL2(BenchmarkParams benchmarkParams, IterationParams iterationParams, CountDownLatch preSetup, CountDownLatch preTearDown, boolean lastIteration, Control notifyControl)
-
-
Method Details
-
announceWarmupReady
public void announceWarmupReady() -
announceWarmdownReady
public void announceWarmdownReady() -
awaitWarmupReady
public void awaitWarmupReady() -
awaitWarmdownReady
public void awaitWarmdownReady() -
getParam
-