threshold

Native
1.3
var threshold: Int
(source)
Deprecated: No-op in modern GC implementation

Deprecated and unused.

Legacy MM: GC threshold, controlling how frequenly GC is activated, and how much time GC takes. Bigger values lead to longer GC pauses, but less GCs.

Default: 8 * 1024

Exceptions

IllegalArgumentException - when value is not positive.