Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR moves the code for `is_live_object` into `is_garbage_object` because they are opposite of one another. It also replaces calls to `is_live_object` and `rb_objspace_markable_object_p` with `!is_garbage_object` and `!rb_objspace_garbage_object_p` respectively. This refactor reduces the surface area of the GC API. Co-authored-by: Peter Zhu <peter@peterzhu.ca>
- Loading branch information
1 parent
19752cf
commit ea84c29
Showing
5 changed files
with
13 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters