Last Comment Bug 713773 - Ensure GC Statistics totals are initialized
: Ensure GC Statistics totals are initialized
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: unspecified
: All All
-- normal (vote)
: mozilla12
Assigned To: Bill McCloskey (:billm)
: Jason Orendorff [:jorendorff]
Depends on:
  Show dependency treegraph
Reported: 2011-12-27 15:51 PST by Bill McCloskey (:billm)
Modified: 2011-12-28 11:10 PST (History)
3 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

fix (1.18 KB, patch)
2011-12-27 15:51 PST, Bill McCloskey (:billm)
igor: review+
Details | Diff | Splinter Review

Description User image Bill McCloskey (:billm) 2011-12-27 15:51:45 PST
Created attachment 584501 [details] [diff] [review]

Julian found this bug while running valgrind. The counts, totals, and startupTime fields are not getting initialized if MOZ_GCTIMER is unset. This didn't used to be a problem. But now we use the same facility for sending GC info to the error log. It uses the counts data, but not totals or startupTime. I just moved the initialization up.
Comment 2 User image Matt Brubeck (:mbrubeck) 2011-12-28 11:10:25 PST

Note You need to log in before you can comment on or make changes to this bug.