Bug 1288566 - Include all possible states in StateName; r=jonco
authorTerrence Cole <terrence@mozilla.com>
Fri, 22 Jul 2016 10:32:05 -0700
changeset 346417 eff16f4a8cc1972124af8ce3f20d9aaa18b4b158
parent 346416 d55c09896ad7dc94eab55b9d81936618eda5271f
child 346418 d09b4de9752798fb3517826a7ef77bc6cb33761b
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjonco
bugs1288566
milestone50.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 1288566 - Include all possible states in StateName; r=jonco
js/src/jsgc.cpp
--- a/js/src/jsgc.cpp
+++ b/js/src/jsgc.cpp
@@ -7597,17 +7597,18 @@ const char*
 StateName(State state)
 {
     static const char* names[] = {
         "None",
         "MarkRoots",
         "Mark",
         "Sweep",
         "Finalize",
-        "Compact"
+        "Compact",
+        "Decommit"
     };
     MOZ_ASSERT(ArrayLength(names) == NUM_STATES);
     MOZ_ASSERT(state < NUM_STATES);
     return names[state];
 }
 
 void
 AutoAssertHeapBusy::checkCondition(JSRuntime *rt)