2 ms·
Yes. In TruffleRuby we have to ensure that we free memory returned by FFI calls using the correct free implementation, because that’s not necessarily the one be
by aardvark179 5y ago
Yes. In TruffleRuby we have to ensure that we free memory returned by FFI calls using the correct free implementation, because that’s not necessarily the one being used internally by our runtime.
It’s annoying but it’s something you have to handle.
As for supporting multiple DLLs using different run time libs, I’d guess that only works because they are slightly more complex than simple shared libs and can sort out thread local storage and the like during thread attach. Without that I can imagine things going badly wrong.