Bug 1088731 - initialize all members of TickSample. r=bgirard
authorTom Tromey <tom@tromey.com>
Fri, 24 Oct 2014 09:47:00 +0200
changeset 212590 79eace8a91537a576409ac8bf2c33e621dacaad0
parent 212589 a4fb4c2888a1a175142543672449e90395574c8f
child 212591 2a1404167fb6207b2c0ef7a0b12e4bbe1de8449b
push id51011
push usercbook@mozilla.com
push dateTue, 28 Oct 2014 09:06:47 +0000
treeherdermozilla-inbound@2a1404167fb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgirard
bugs1088731
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1088731 - initialize all members of TickSample. r=bgirard
tools/profiler/platform.h
--- a/tools/profiler/platform.h
+++ b/tools/profiler/platform.h
@@ -259,17 +259,20 @@ class TickSample {
       :
         pc(NULL),
         sp(NULL),
         fp(NULL),
 #ifdef ENABLE_ARM_LR_SAVING
         lr(NULL),
 #endif
         context(NULL),
-        isSamplingCurrentThread(false) {}
+        isSamplingCurrentThread(false),
+        threadProfile(nullptr),
+        rssMemory(0),
+        ussMemory(0) {}
 
   void PopulateContext(void* aContext);
 
   Address pc;  // Instruction pointer.
   Address sp;  // Stack pointer.
   Address fp;  // Frame pointer.
 #ifdef ENABLE_ARM_LR_SAVING
   Address lr;  // ARM link register