[K/N][tests] Do not run backed.native tests with aggressive GC

This commit is contained in:
Ilya Matveev
2022-01-28 19:31:00 +07:00
committed by Space
parent 6379fe4c4c
commit 8668797afd
3 changed files with 2 additions and 15 deletions
@@ -58,9 +58,8 @@ fun test() {
val progressReportsCount = 100
if (Platform.memoryModel == MemoryModel.EXPERIMENTAL) {
kotlin.native.internal.GC.thresholdAllocations = retainLimit
// Effectively disable trigger on safepoints.
kotlin.native.internal.GC.threshold = Int.MAX_VALUE
kotlin.native.internal.GC.autotune = false
kotlin.native.internal.GC.targetHeapBytes = retainLimit
}
// On Linux, the child process might immediately commit the same amount of memory as the parent.