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
There is a very specific use case which can result in segfaults. The implementer must send through an object such as a channel that can be sent some actionable thing. Once the papyrus code finishes, if this code is called it will be called on invalid memory (as the library has been dropped at this point).
The solution may be to store loaded libraries, and give the ability to clear the cache at user defined points. Storing would not be the preferred option so would have to be opted into.
Todo:
Rename and delete libs
Add method to clear out cached libs
Remove redirection on execution
The text was updated successfully, but these errors were encountered:
Basically the api function dlopen will keep loaded libraries in memory to avoid
continuously allocating memory. It only does not release the library when thread_local data
is hanging around, and it seems println!() is something that does this.
Hence to avoid not having the library not updated with a new new() call, a different lib
name is passed to the function.
This is very annoying as it has needless fs interactions and a growing fs footprint but>
what can you do ¯_(ツ)_/¯
There is a very specific use case which can result in segfaults. The implementer must send through an object such as a channel that can be sent some actionable thing. Once the papyrus code finishes, if this code is called it will be called on invalid memory (as the library has been dropped at this point).
The solution may be to store loaded libraries, and give the ability to clear the cache at user defined points. Storing would not be the preferred option so would have to be opted into.
Todo:
The text was updated successfully, but these errors were encountered: