-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rt
: Add framework for creating heap statics
#64
Comments
In this case you're talking about statics that are stored on the heap (from lazy_static, once_cell), rather than static data stored in the |
Yep. People could still use one of those crates, but I believe it would get reported as a memory leak by the FZ tooling. |
rt
: Add framework for creating staticsrt
: Add framework for creating heap statics
We can't use |
I think it's possible to use with |
Normal Rust binaries will initialize heap statics on start, and then essentially leak the memory. This works fine because the memory is cleaned up during process exit. We can't assume the same with a FAP, so if we want to support "statics", we should provide a way in the runtime for initializing them before the user's app code runs, and freeing them after it exits.
The text was updated successfully, but these errors were encountered: