diff options
author | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-31 09:22:35 +0000 |
---|---|---|
committer | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-31 09:22:35 +0000 |
commit | 9fd08911c0ab12591735c133769ef1828e5bd9c0 (patch) | |
tree | 175a5db3a10a9a2dabfdff4de4873e9590ca35a5 | |
parent | 7ae466f134a457e16d88dce4a5355b4cd6596ae5 (diff) |
* gc.c (gc_prof_mark_timer_stop): count is not initialized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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; |