ruby-changes:25343
From: nari <ko1@a...>
Date: Wed, 31 Oct 2012 18:22:48 +0900 (JST)
Subject: [ruby-changes:25343] nari:r37395 (trunk): * gc.c (gc_prof_mark_timer_stop): count is not initialized.
nari 2012-10-31 18:22:35 +0900 (Wed, 31 Oct 2012) New Revision: 37395 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37395 Log: * gc.c (gc_prof_mark_timer_stop): count is not initialized. Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 37394) +++ ChangeLog (revision 37395) @@ -1,3 +1,7 @@ +Wed Oct 31 18:10:53 2012 Narihiro Nakamura <authornari@g...> + + * gc.c (gc_prof_mark_timer_stop): count is not initialized. + Wed Oct 31 09:28:24 2012 Eric Hodel <drbrain@s...> * thread.c (rb_thread_call_without_gvl2): Note that ubf() may or may Index: gc.c =================================================================== --- gc.c (revision 37394) +++ gc.c (revision 37395) @@ -3986,7 +3986,7 @@ { 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/