Closed shotonoff closed 2 years ago
To prevent releasing allocated memory, we have to use runtime.KeepAlive function to inform GC about it This PR adds runtime.KeepAlive calls, to ensure memory is consistent
runtime.KeepAlive
To prevent releasing allocated memory, we have to use
runtime.KeepAlive
function to inform GC about it This PR addsruntime.KeepAlive
calls, to ensure memory is consistent