Class MemoryModelValidator
java.lang.Object
se.deversity.asynctest.diagnostics.MemoryModelValidator
Validates that the async-test framework itself properly respects Java Memory Model (JMM)
"Happens-Before" relationships. This ensures the test framework's internal state is
correctly synchronized and won't introduce concurrency bugs.
Key JMM rules validated:
- Volatile reads/writes create memory barriers
- Synchronization (locks) create acquire/release semantics
- Happens-Before relationships are transitive
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreates a validator whose writer threads start as promptly as the scheduler allows. -
Method Summary
Modifier and TypeMethodDescriptionvalidate()Run comprehensive JMM validation on the test framework.
-
Constructor Details
-
MemoryModelValidator
public MemoryModelValidator()Creates a validator whose writer threads start as promptly as the scheduler allows.
-
-
Method Details
-
validate
Run comprehensive JMM validation on the test framework. This checks that all internal state transitions are properly synchronized.- Returns:
- the findings this detector collected during the run
-