From c515c9e1fe10b9ffe24b851552e76ef66cabf67e Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Tue, 22 Oct 2024 14:05:49 -0400 Subject: [PATCH] Use mmtk_is_mmtk_object instead of mmtk_is_live_object --- gc/mmtk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc/mmtk.c b/gc/mmtk.c index a934cb0aa4fcd5..93938efca8a8ad 100644 --- a/gc/mmtk.c +++ b/gc/mmtk.c @@ -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;