← Docs
kotlin-stdlib / kotlin.native.runtime / GC / heapTriggerCoefficient

heapTriggerCoefficient

Native
1.3
var heapTriggerCoefficient : Double
(source)

The GC is scheduled when Kotlin heap overflows heapTriggerCoefficient * targetHeapBytes .

Default: 0.9

Exceptions

IllegalArgumentException - when value is outside (0, 1] interval.

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 .