andylamax
06/15/2022, 3:45 AMmemScope
?Big Chungus
06/15/2022, 7:28 AMBig Chungus
06/15/2022, 7:28 AMephemient
06/15/2022, 8:50 AMBig Chungus
06/15/2022, 8:51 AMephemient
06/15/2022, 8:51 AMmemScoped
cannot be tracked by the Kotlin object graph, so the scope is there to ensure orderly cleanupandylamax
06/15/2022, 12:52 PMBig Chungus
06/15/2022, 12:53 PMBig Chungus
06/15/2022, 12:53 PMBig Chungus
06/15/2022, 12:54 PMBig Chungus
06/15/2022, 12:55 PMandylamax
06/15/2022, 12:58 PMbut might still be in use by some system/c process
That irons it our perfectly. Thanks a lot
Landry Norris
06/15/2022, 2:53 PMephemient
06/15/2022, 2:56 PM.usePinned()
might have helpedandylamax
06/15/2022, 2:57 PMLandry Norris
06/15/2022, 3:00 PMephemient
06/15/2022, 3:08 PMLandry Norris
06/15/2022, 3:12 PMtempArena
for this reason, that I set aside for specific variables that by implicit contract can be freed any time without problem. It would be nice to have some other arena equivalent that lets me alloc and free individual variables.Landry Norris
06/15/2022, 3:13 PMephemient
06/15/2022, 3:14 PMval ptr = nativeHeap.alloc(...)
nativeHeap.free(ptr)
Landry Norris
06/15/2022, 3:17 PMephemient
06/15/2022, 3:20 PMLandry Norris
06/15/2022, 3:34 PM