aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--gc.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index eadff14ab6..b56318d13b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Nov 4 19:26:10 2010 Koichi Sasada <ko1@atdot.net>
+
+ * gc.c (before_gc_sweep): fix commit miss.
+
Thu Nov 4 19:20:46 2010 Koichi Sasada <ko1@atdot.net>
* gc.c (after_gc_sweep, before_gc_sweep):
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());
}
}