Bug 962576 - Fix warning in minor GC profiling code which is not built by default r=me DONTBUILD
authorJon Coppeard <jcoppeard@mozilla.com>
Thu, 23 Jan 2014 12:25:25 +0000
changeset 164839 73d1c5429eaa504f1b03a83d362b3a3552f06291
parent 164838 a5c71a784e331bd210f9b029fcee207189d31cb8
child 164840 d56e36c1837e15719ba9ae1374ce65ac4fe02e0b
push id26064
push userryanvm@gmail.com
push dateThu, 23 Jan 2014 20:26:56 +0000
treeherdermozilla-central@c0df37c18e54 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs962576
milestone29.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 962576 - Fix warning in minor GC profiling code which is not built by default r=me DONTBUILD
js/src/gc/Nursery.cpp
--- a/js/src/gc/Nursery.cpp
+++ b/js/src/gc/Nursery.cpp
@@ -752,17 +752,17 @@ js::Nursery::collect(JSRuntime *rt, JS::
      * because gcBytes >= gcMaxBytes.
      */
     if (rt->gcBytes >= rt->gcMaxBytes)
         disable();
 
     TIME_END(total);
 
 #ifdef PROFILE_NURSERY
-    uint64_t totalTime = TIME_TOTAL(total);
+    int64_t totalTime = TIME_TOTAL(total);
 
     if (totalTime >= GCReportThreshold) {
         static bool printedHeader = false;
         if (!printedHeader) {
             fprintf(stderr,
                     "MinorGC time: Total   WaitBg  mkStrBf ckHshTb mkRuntm mkDbggr clrNOC  collect updtIon resize  pretnur sweep\n");
             printedHeader = true;
         }