summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--gc.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 51c0c6e6e2..398e344d33 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Oct 31 18:10:53 2012 Narihiro Nakamura <authornari@gmail.com>
+
+ * gc.c (gc_prof_mark_timer_stop): count is not initialized.
+
Wed Oct 31 09:28:24 2012 Eric Hodel <drbrain@segment7.net>
* thread.c (rb_thread_call_without_gvl2): Note that ubf() may or may
diff --git a/gc.c b/gc.c
index 7862e22fc8..f19a7325ff 100644
--- a/gc.c
+++ b/gc.c
@@ -3986,7 +3986,7 @@ gc_prof_mark_timer_stop(rb_objspace_t *objspace)
{
if (objspace->profile.run) {
double mark_time = 0;
- size_t count = count;
+ size_t count = objspace->profile.count;
gc_profile_record *record = &objspace->profile.record[count];
mark_time = getrusage_time() - record->gc_mark_time;