gc icon indicating copy to clipboard operation
gc copied to clipboard

Roots for dynamic segments added with dload

Open beta-ziliani opened this issue 3 years ago • 1 comments

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.

beta-ziliani avatar Jun 22 '22 11:06 beta-ziliani

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.

ysbaddaden avatar Jun 23 '22 10:06 ysbaddaden