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

Fixed roots #26

Open
beta-ziliani opened this issue Jun 22, 2022 · 1 comment
Open

Fixed roots #26

beta-ziliani opened this issue Jun 22, 2022 · 1 comment

Comments

@beta-ziliani
Copy link
Collaborator

Currently, the algorithms loads the roots at every collection, but that's unnecessary for all the fixed segments of the binary. It would be better to have them always loaded and avoid the (little) extra time and memory it takes to load each segment.

@ysbaddaden
Copy link
Owner

We'd still have to copy them, because we push all crystal fibers as roots (and we're about to push all threads too), and the collector pops everything (AFAIR), and on ELF-based systems (Darwin) it's merely accessing global pointers, so it's cheap, so 🤷

Anyway, you did just that in #24 with Segments :)

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

No branches or pull requests

2 participants