Fix minor bug in memory management

Properly handle the case when the program finishes with empty 'toFree' buffer
but non-empty deallocation queue.
This commit is contained in:
Svyatoslav Scherbina
2018-07-04 10:41:37 +03:00
committed by SvyatoslavScherbina
parent f4fef09447
commit 155b7b698e
3 changed files with 10 additions and 0 deletions
+4
View File
@@ -2205,6 +2205,10 @@ task memory_weak1(type: RunKonanTest) {
source = "runtime/memory/weak1.kt"
}
task memory_only_gc(type: RunStandaloneKonanTest) {
source = "runtime/memory/only_gc.kt"
}
task mpp1(type: RunStandaloneKonanTest) {
source = "codegen/mpp/mpp1.kt"
flags = ['-tr', '-Xmulti-platform']
@@ -0,0 +1,4 @@
fun main(args: Array<String>) {
konan.internal.GC.collect()
}