[K/N] Add hard memory boundary ^KT-54727
This commit is contained in:
committed by
Space Team
parent
220ecc4788
commit
576f6642f9
@@ -3150,8 +3150,7 @@ standaloneTest("stress_gc_allocations") {
|
||||
(project.testTarget != "watchos_simulator_arm64") &&
|
||||
!isNoopGC &&
|
||||
!isAggressiveGC && // TODO: Investigate why too slow
|
||||
!runtimeAssertionsPanic && // New allocator with assertions makes this test very slow
|
||||
(project.testTarget != "mingw_x64") // TODO: Fix on mingw.
|
||||
!runtimeAssertionsPanic // New allocator with assertions makes this test very slow
|
||||
source = "runtime/memory/stress_gc_allocations.kt"
|
||||
flags = ['-tr', '-opt-in=kotlin.native.internal.InternalForKotlinNative']
|
||||
}
|
||||
|
||||
@@ -62,6 +62,7 @@ fun test() {
|
||||
if (Platform.memoryModel == MemoryModel.EXPERIMENTAL) {
|
||||
kotlin.native.runtime.GC.autotune = false
|
||||
kotlin.native.runtime.GC.targetHeapBytes = retainLimit
|
||||
kotlin.native.runtime.GC.pauseOnTargetHeapOverflow = true
|
||||
}
|
||||
|
||||
// On Linux, the child process might immediately commit the same amount of memory as the parent.
|
||||
|
||||
Reference in New Issue
Block a user