fun collect()
Trigger new collection and wait for its completion.
Legacy MM: force garbage collection immediately, unless collector is stopped with stop operation. Even if GC is suspended, collect still triggers collection.
© 2010–2023 JetBrains s.r.o. and Kotlin Programming Language contributorsLicensed under the Apache License, Version 2.0. https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native.runtime/-g-c/collect.html