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

Roots for dynamic segments added with dload #25

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

Roots for dynamic segments added with dload #25

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

Comments

@beta-ziliani
Copy link
Collaborator

Related #15 (for macOS)

dlopen adds various data/text segments that we need to add as roots. #24 fixes it for macOS, but a similar idea should be taken in place for other systems. See bdwgc/dyn_load.c for how to implement this in a variety of systems.

@ysbaddaden
Copy link
Owner

It means chasing references in library globals?

That's interesting, but that may be out of scope. For example we still wont know about library threads, so we can't scan their stack & CPU registers. If we expect all GC allocations to be referenced by the main program, then we don't need to scan the library segments & threads.

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