-
Notifications
You must be signed in to change notification settings - Fork 118
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
Add safe GC rooting infrastructure #346
Comments
What role does script_plugin provider of |
The script plugin is used for marking types that are only safe when used in a way that the GC can observe them. Ideally, types like JSVal and JSString and JSObject would be marked with it, but I suspect that requires further thought about supporting them correctly. |
I am currently looking into taking the
|
Actually, I'm not too sure about how |
Not done in #352. |
We should write warning on |
#344 (comment) exposes an area where users of this crate currently need to build their own abstractions like RootedVec. Moving this into mozjs would allow creating safe HandleValueArray constructors. This would also require moving most of the tracing infrastructure into this crate, like the JSTraceable interface and RootedJSTraceableSet, and ensure that all runtimes have a trace hook that traces the known traceable set.
The text was updated successfully, but these errors were encountered: