3
3
java.lang.IllegalStateException: Check failed.
4
4
at org.jetbrains.kotlinx.lincheck_test.representation.BaseMethodHandleLookupRepresentationTest.block(MethodHandlesLookupTests.kt:58)
5
5
at org.jetbrains.kotlinx.lincheck_test.representation.BaseMethodHandleLookupRepresentationTest.block(MethodHandlesLookupTests.kt:46)
6
- at org.jetbrains.kotlinx.lincheck_test.representation.BaseRunConcurrentRepresentationTest$testRunWithModelChecker$result$1$1.invoke(RunConcurrentRepresentationTests.kt:40 )
6
+ at org.jetbrains.kotlinx.lincheck_test.representation.BaseRunConcurrentRepresentationTest$testRunWithModelChecker$result$1$1.invoke(RunConcurrentRepresentationTests.kt:42 )
7
7
at java.base/java.lang.Thread.run(Thread.java:832)
8
8
9
9
The following interleaving leads to the error:
10
10
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11
11
| Thread 1 |
12
12
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
13
- | MethodHandlesFindSpecialRepresentationTest#1.block(): threw IllegalStateException at BaseRunConcurrentRepresentationTest$testRunWithModelChecker$result$1$1.invoke(RunConcurrentRepresentationTests.kt:40 ) |
13
+ | MethodHandlesFindSpecialRepresentationTest#1.block(): threw IllegalStateException at BaseRunConcurrentRepresentationTest$testRunWithModelChecker$result$1$1.invoke(RunConcurrentRepresentationTests.kt:42 ) |
14
14
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
15
15
16
16
Detailed trace:
17
17
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
18
18
| Thread 1 |
19
19
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
20
- | MethodHandlesFindSpecialRepresentationTest#1.block(): threw IllegalStateException at BaseRunConcurrentRepresentationTest$testRunWithModelChecker$result$1$1.invoke(RunConcurrentRepresentationTests.kt:40 ) |
20
+ | MethodHandlesFindSpecialRepresentationTest#1.block(): threw IllegalStateException at BaseRunConcurrentRepresentationTest$testRunWithModelChecker$result$1$1.invoke(RunConcurrentRepresentationTests.kt:42 ) |
21
21
| block(): threw IllegalStateException at BaseMethodHandleLookupRepresentationTest.block(MethodHandlesLookupTests.kt:46) |
22
22
| doTest() at BaseMethodHandleLookupRepresentationTest.block(MethodHandlesLookupTests.kt:55) |
23
23
| Companion#1.create(): CounterDerived#1 at MethodHandlesFindSpecialRepresentationTest.doTest(MethodHandlesLookupTests.kt:22) |
@@ -26,13 +26,11 @@ Detailed trace:
26
26
| value ➜ 0 at CounterDerived.increment(MethodHandlesLookupTests.kt:178) |
27
27
| value = 2 at CounterDerived.increment(MethodHandlesLookupTests.kt:178) |
28
28
| Special#1.invoke(CounterDerived#1) at MethodHandlesFindSpecialRepresentationTest.doTest(MethodHandlesLookupTests.kt:30) |
29
- | MethodHandle.linkToSpecial(CounterDerived#1, MemberName#1) at DirectMethodHandle$Holder.invokeSpecial(DirectMethodHandle$Holder:0) |
30
- | CounterDerived#1.value ➜ 2 at Counter.increment(MethodHandlesLookupTests.kt:158) |
31
- | CounterDerived#1.value = 3 at Counter.increment(MethodHandlesLookupTests.kt:158) |
29
+ | CounterDerived#1.value ➜ 2 at Counter.increment(MethodHandlesLookupTests.kt:158) |
30
+ | CounterDerived#1.value = 3 at Counter.increment(MethodHandlesLookupTests.kt:158) |
32
31
| Special#1.invokeExact(CounterDerived#1) at MethodHandlesFindSpecialRepresentationTest.doTest(MethodHandlesLookupTests.kt:31) |
33
- | MethodHandle.linkToSpecial(CounterDerived#1, MemberName#1) at DirectMethodHandle$Holder.invokeSpecial(DirectMethodHandle$Holder:0) |
34
- | CounterDerived#1.value ➜ 3 at Counter.increment(MethodHandlesLookupTests.kt:158) |
35
- | CounterDerived#1.value = 4 at Counter.increment(MethodHandlesLookupTests.kt:158) |
32
+ | CounterDerived#1.value ➜ 3 at Counter.increment(MethodHandlesLookupTests.kt:158) |
33
+ | CounterDerived#1.value = 4 at Counter.increment(MethodHandlesLookupTests.kt:158) |
36
34
| CounterDerived#1.value ➜ 4 at MethodHandlesFindSpecialRepresentationTest.doTest(MethodHandlesLookupTests.kt:32) |
37
35
| result: IllegalStateException #1 |
38
36
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
0 commit comments