Bug 1400153 - Stop using PodZero to initialize TimeStamps, r=nfroyd
authorSteve Fink <sfink@mozilla.com>
Mon, 23 Apr 2018 17:35:20 -0700
changeset 415201 63a48a0499b6e4ddd21c9ccfc6a3eeecc1a6b5c2
parent 415200 9938026038b1d8e5884a61b8ab77ee9aff478ae1
child 415202 72952e781989bd20ed3d08f7dbf53a111eaf20dd
push id33892
push userebalazs@mozilla.com
push dateTue, 24 Apr 2018 09:42:58 +0000
treeherdermozilla-central@26e53729a109 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnfroyd
bugs1400153
milestone61.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 1400153 - Stop using PodZero to initialize TimeStamps, r=nfroyd
js/src/gc/Statistics.cpp
--- a/js/src/gc/Statistics.cpp
+++ b/js/src/gc/Statistics.cpp
@@ -1093,19 +1093,21 @@ Statistics::endSlice()
     // Do this after the slice callback since it uses these values.
     if (last) {
         for (auto& count : counts)
             count = 0;
 
         // Clear the timers at the end of a GC, preserving the data for PhaseKind::MUTATOR.
         auto mutatorStartTime = phaseStartTimes[Phase::MUTATOR];
         auto mutatorTime = phaseTimes[Phase::MUTATOR];
-        PodZero(&phaseStartTimes);
+        for (mozilla::TimeStamp& t : phaseStartTimes)
+            t = TimeStamp();
 #ifdef DEBUG
-        PodZero(&phaseEndTimes);
+        for (mozilla::TimeStamp& t : phaseEndTimes)
+            t = TimeStamp();
 #endif
         PodZero(&phaseTimes);
         phaseStartTimes[Phase::MUTATOR] = mutatorStartTime;
         phaseTimes[Phase::MUTATOR] = mutatorTime;
     }
 
     aborted = false;
 }