bug 1252687 - make the ctor for CycleCollectorStats constexpr r=mccr8
authorTrevor Saunders <tbsaunde@tbsaunde.org>
Tue, 01 Mar 2016 18:15:26 -0500
changeset 286502 739b568dda2063199073af11ced0e63f9801675e
parent 286501 40711ac0b464c02a6ce5ce223d855a4fa3df935b
child 286503 d7608e766470baae63b7f5f963ffdd6e8cf0e6fa
push id30050
push usercbook@mozilla.com
push dateThu, 03 Mar 2016 10:54:59 +0000
treeherdermozilla-central@2b5237c178ea [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmccr8
bugs1252687
milestone47.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 1252687 - make the ctor for CycleCollectorStats constexpr r=mccr8
dom/base/nsJSEnvironment.cpp
--- a/dom/base/nsJSEnvironment.cpp
+++ b/dom/base/nsJSEnvironment.cpp
@@ -1432,16 +1432,21 @@ TimeUntilNow(TimeStamp start)
   if (start.IsNull()) {
     return 0;
   }
   return TimeBetween(start, TimeStamp::Now());
 }
 
 struct CycleCollectorStats
 {
+  MOZ_CONSTEXPR CycleCollectorStats() :
+    mMaxGCDuration(0), mRanSyncForgetSkippable(false), mSuspected(0),
+    mMaxSkippableDuration(0), mMaxSliceTime(0), mMaxSliceTimeSinceClear(0),
+    mTotalSliceTime(0), mAnyLockedOut(false), mExtraForgetSkippableCalls(0) {}
+
   void Init()
   {
     Clear();
     mMaxSliceTimeSinceClear = 0;
   }
 
   void Clear()
   {