diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | gc.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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 @@ -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; |