You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you have obtained the file descriptor to an underlying os.File.
you have passed memory to cgo which was allocated inside the same function.
In wasmtime-go, the variable that we are calling runtime.KeepAlive() for are normally not allocated by the same function, so I think maybe we don't need runtime.KeepAlive()?
The text was updated successfully, but these errors were encountered:
Do you have some examples of invocations that can be removed? I tried to write things in such a way that removing any necessary call would trigger a panic, but it's also not guaranteed to panic so it's just a small safeguard.
According to this discussion https://forum.golangbridge.org/t/curious-about-runtime-keepalive-usage/3530, some common scenarios that need to call
runtime.KeepAlive()
isIn wasmtime-go, the variable that we are calling
runtime.KeepAlive()
for are normally not allocated by the same function, so I think maybe we don't needruntime.KeepAlive()
?The text was updated successfully, but these errors were encountered: