Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call gc_mark_ptr directly during GC loop
Because we always use `gc_mark_ptr` from inside Ruby's GC loop we can optimise the call to remove the function pointer lookup inside `reachable_objects_from`. This still allows us to remove the conditional from gc_mark_ptr and build marking on top of a generic object traversal approach that can be overridden easily, but mitigates the performance penalty for the default case.
- Loading branch information