summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index 92a2382e55..ad0118f63f 100644
--- a/gc.c
+++ b/gc.c
@@ -1981,8 +1981,8 @@ before_gc_sweep(rb_objspace_t *objspace)
objspace->heap.free_num = 0;
/* sweep unlinked method entries */
- if (th->vm->unlinked_method_entry_list) {
- rb_sweep_method_entry(th->vm);
+ if (GET_VM()->unlinked_method_entry_list) {
+ rb_sweep_method_entry(GET_VM());
}
}