* 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
This commit is contained in:
nari 2012-10-31 09:22:35 +00:00
parent 7ae466f134
commit 9fd08911c0
2 changed files with 5 additions and 1 deletions

View File

@ -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

2
gc.c
View File

@ -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;