[K/N][runtime] Track safepoints in aggressive GC

Issue #KT-49188 Fixed
This commit is contained in:
Ilya Matveev
2022-03-24 14:12:10 +07:00
committed by Space
parent ec155653f0
commit 78d179e9ab
3 changed files with 186 additions and 9 deletions
@@ -222,8 +222,12 @@ fun testCleanerCleansWithoutGC() {
waitCleanerWorker()
assertTrue(called.value)
// If this fails, GC has somehow ran on the cleaners worker.
assertNotNull(funBoxWeak!!.value)
// Only for legacy MM.
if (Platform.memoryModel != MemoryModel.EXPERIMENTAL) {
// If this fails, GC has somehow ran on the cleaners worker.
assertNotNull(funBoxWeak!!.value)
}
}
val globalInt = AtomicInt(0)