-
Notifications
You must be signed in to change notification settings - Fork 289
Allow Rust objects to be (safely) traced by the v8 GC #63
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
Comments
@drbo I'm still a bit wobbly on my GC/memory management skills so let me see if I follow:
So is that specifically what this would enable? If we could provide a safe way to implement the trace hooks for a Rust type, then it would be safe for a neon class to own Rust objects of that type. Do I have that right? |
Yes, that is what I am thinking of. It would probably require a compiler On Thu, Apr 21, 2016 at 7:34 PM, Dave Herman notifications@github.com
|
Are there plans to let the heap to safely hold references to JS objects (i.e. a a Rust object that "owns" a JS object, prevents a JS object from being GCed, EDIT: Actually I forgot about the need to use libuv to execute the v8::Function in the proper thread. So |
I'd love to see an RFC sketching out the API! I'll open an issue in the RFCs repo. |
It would be nice for Rust objects to be safely traceable by the v8 GC. This will require syntax extensions to handle the various tracing methods safely.
The text was updated successfully, but these errors were encountered: