Skip to content

Commit

Permalink
Use mmtk_is_mmtk_object instead of mmtk_is_live_object
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Oct 22, 2024
1 parent 4d9fa68 commit c515c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gc/mmtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ each_object(struct objspace *objspace, int (*func)(VALUE, void *), void *data)

VALUE *obj_ptr;
rb_darray_foreach(objs, i, obj_ptr) {
if (!mmtk_is_live_object((MMTk_ObjectReference)*obj_ptr)) continue;
if (!mmtk_is_mmtk_object((MMTk_ObjectReference)*obj_ptr)) continue;

if (func(*obj_ptr, data) != 0) {
break;
Expand Down

0 comments on commit c515c9e

Please sign in to comment.