summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-31 09:22:35 +0000
committernari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-31 09:22:35 +0000
commit9fd08911c0ab12591735c133769ef1828e5bd9c0 (patch)
tree175a5db3a10a9a2dabfdff4de4873e9590ca35a5 /gc.c
parent7ae466f134a457e16d88dce4a5355b4cd6596ae5 (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
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
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;