Make NoOp GC support multiple mutators
This commit is contained in:
committed by
Space
parent
792ac6ab63
commit
73533e4b19
@@ -28,11 +28,16 @@ val int2 = 77
|
||||
int1++
|
||||
withWorker {
|
||||
executeAfter(0, {
|
||||
assertFailsWith<IncorrectDereferenceException> {
|
||||
if (kotlin.native.Platform.memoryModel == kotlin.native.MemoryModel.EXPERIMENTAL) {
|
||||
int1++
|
||||
assertEquals(3, int1)
|
||||
} else {
|
||||
assertFailsWith<IncorrectDereferenceException> {
|
||||
int1++
|
||||
}
|
||||
assertEquals(2, int1)
|
||||
}
|
||||
assertEquals(2, int1)
|
||||
assertEquals(77, int2)
|
||||
}.freeze())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user