上游 · Kotlin/Native memory management
Allocation with mmap . The allocator should use the mmap system call to map files into memory.
If you set up the kotlin.native.binary.disableMmap=true Gradle property, the default allocator uses malloc instead of mmap .
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…