上游 · Kotlin/Native memory management
Paging enabled . Paging of allocations (buffering) should be enabled.
If you set up the kotlin.native.binary.pagedAllocator=false Gradle property, the memory is reserved on a per-object basis instead.
Adjust memory consumption
If you experience unexpectedly high memory consumption, try the following solutions:
Update Kotlin
Update Kotlin to the latest version. We're constantly improving the memory manager, so even a simple compiler update might improve memory consumption.
Disable allocator paging…