summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 283a5bcf28..b88450d0e6 100644
--- a/gc.c
+++ b/gc.c
@@ -2205,6 +2205,11 @@ garbage_collect(rb_objspace_t *objspace)
gc_sweep(objspace);
GC_PROF_SWEEP_TIMER_STOP;
+ /* sweep unlinked method entries */
+ if (th->vm->unlinked_method_entry_list) {
+ rb_sweep_method_entry(th->vm);
+ }
+
GC_PROF_TIMER_STOP;
if (GC_NOTIFY) printf("end garbage_collect()\n");
return TRUE;