← Docs
kotlin-stdlib / kotlin.native.runtime / Debugging / forceCheckedShutdown

forceCheckedShutdown

Native
1.3
var forceCheckedShutdown : Boolean
(source)

Run full checked deinitialization on shutdown.

Make sure that after exiting main() only a single thread with Kotlin runtime remains. Run GC collecting everything including globals.

When enabled together with Platform.isCleanersLeakCheckerActive additionally checks that no cleaners get executed after main()

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .