https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
g

goncalossilva

09/27/2023, 3:09 PM
Is there any chance to tweak or at least influence the target heap size when running on iOS? I’ve found this, which sets a different target on iOS and on watchOS, but there is another edge case: app extensions. These are limited to 30MB, so the 100MB for iOS limit is too high.
kotlin.native.binary.appStateTracking=enabled
exists but it only seems to disable the timer-based GC runs, and doesn’t lower the actual target. Do I have good options other than running the GC manually?
kotlin.native.runtime.GC.targetHeapBytes
and
kotlin.native.runtime.GC.maxHeapBytes
are promising.