Skip to content

Commit f237a0b

Browse files
author
Mark Pollack
committed
Keep JaCoCo's agent out of Lincheck's classes
A Lincheck class first initialised inside a model-checked operation runs JaCoCo's probe setup, which takes JaCoCo's lock; Lincheck can switch threads while it is held, and the test hangs. AcpTurnQueueLincheckTest with a cancelRunning operation hung this way under JaCoCo on every run (a thread parked in ManagedThreadScheduler.awaitTurn from VoidResult.<clinit> inside ExecutionDataStore.get), and passes in 27 s with Lincheck excluded. Coverage counts only the project's classes, so nothing it measures changes.
1 parent 4431f67 commit f237a0b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎pom.xml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,14 @@
593593
<goals>
594594
<goal>prepare-agent</goal>
595595
</goals>
596+
<configuration>
597+
<!-- The agent leaves Lincheck alone: an instrumented Lincheck class
598+
initialised inside a model-checked operation takes JaCoCo's lock,
599+
Lincheck switches threads while it is held, and the test hangs. -->
600+
<excludes>
601+
<exclude>org.jetbrains.*</exclude>
602+
</excludes>
603+
</configuration>
596604
</execution>
597605
<!-- In verify, after the integration tests (failsafe appends to the same
598606
execution data) and before the gate, so the report shows what the

0 commit comments

Comments
 (0)