Skip to content
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

Rooting array buffers #1

Open
guybedford opened this issue Feb 20, 2023 · 1 comment
Open

Rooting array buffers #1

guybedford opened this issue Feb 20, 2023 · 1 comment

Comments

@guybedford
Copy link
Collaborator

The current GC strategy is to just clear all allocations at the end of each call, but we need to allow the JS ArrayBuffers to hold on to the memory they expose. This likely involves integration into the JS GC to ensure it can become a managed pointer in the engine.

@guybedford
Copy link
Collaborator Author

This is still a very important issue to resolve. We need to properly integrate the cabi_post calls so that they free non-rooted data, and retain the rooted data structures. In the case of rooted data structures, the pointer is the target of the free call to integrate into the JS GC (zero-copy strings and typed arrays).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant