public class AllInterleavingsBuilder extends Object
try (AllInterleavings testUpdate = AllInterleavings.builder("TestShowSharedMemory").showStatementsWhenSingleThreaded().showNonVolatileSharedMemoryAccess().build();) {
while( testUpdate.hasNext() ) {
}
}
Modifier and Type | Method and Description |
---|---|
AllInterleavings |
build()
Builds a new instance of the class AllInterleavings with the given properties.
|
AllInterleavingsBuilder |
maximumRuns(int maximum)
AllInterleavings terminates when no more interleavings are available or the maximumRuns count is reached.
|
AllInterleavingsBuilder |
maximumSynchronizationActionsPerThread(int maximum)
If a thread executes more than the given maximum synchronization actions it gets terminated by
an exception.
|
AllInterleavingsBuilder |
removeAtomicAnnotation(Class cl)
Removes the atomic annotation from the given class.
|
AllInterleavingsBuilder |
showNonVolatileSharedMemoryAccess()
Also show non volatile memory access in the interleave report.
|
AllInterleavingsBuilder |
showStatementsInExecutor()
Show statements in the interleave report when inside one of the methods of classes implementing java.util.concurrent.Executor
like java.util.concurrent.ThreadPoolExecutor or java.util.concurrent.ForkJoinPool
Statements are synchronization actions and when
showNonVolatileSharedMemoryAccess was called also non volatile memory access. |
AllInterleavingsBuilder |
showStatementsWhenSingleThreaded()
Show statements in the interleave report also when only one thread is currently running.
|
public AllInterleavings build()
public AllInterleavingsBuilder removeAtomicAnnotation(Class cl)
cl
- The class for which the annotation should be removed.public AllInterleavingsBuilder showStatementsWhenSingleThreaded()
showNonVolatileSharedMemoryAccess
was called also non volatile memory access.public AllInterleavingsBuilder showStatementsInExecutor()
showNonVolatileSharedMemoryAccess
was called also non volatile memory access.public AllInterleavingsBuilder showNonVolatileSharedMemoryAccess()
public AllInterleavingsBuilder maximumRuns(int maximum)
maximum
- The new maximum run countpublic AllInterleavingsBuilder maximumSynchronizationActionsPerThread(int maximum)
maximum
- The new maximum synchronization actions per thread.Copyright © 2020 vmlens. All rights reserved.