Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix profiler's call graph node getting missed by the GC
When the NodeWorklist hit its allocated size, add_node would reallocate the list but then not actually add the node to the resized list. This made us miss this node during the GC's mark run and led to outdated object pointers in the allocation list. Fix by restructuring the code, so we reallocate first and then add the item. I also removed the unused code for handling start > 0 as was an optimization for a condition that was never actually implemented. This code an the added complexity probably led to the oversight in the first place.
- Loading branch information