-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
I do not have a failing test case for this. However I believe this is not a safe place to free a node:
Line 223 in 9d59ed4
| free(s); |
I believe the free-ing should be defered to the end of collect_roots, just like collect_white does.
The reason is that the early drop() it could be potentially be changing the shape of the memory graph that has already been traversed by mark_grey(). Potentially causing scan_black() not to restore the reference counts properly.
Metadata
Metadata
Assignees
Labels
No labels