Skip to content

rts: Ensure that markCAFs marks object code

Ben Gamari requested to merge wip/T20649 into master

Previously markCAFs would only evacuate CAFs' indirectees. This would allow reachable object code to be unloaded by the linker as evacuate may never be called on the CAF itself, despite it being reachable via the {dyn,revertible}_caf_lists.

To fix this we teach markCAFs to explicit call markObjectCode, ensuring that the linker is aware of objects reachable via the CAF lists.

Fixes #20649 (closed).

Merge request reports