Bug 1465472 followup - Remove (now always-false) check for atoms compartment. r=jonco
authorJan de Mooij <jdemooij@mozilla.com>
Thu, 07 Jun 2018 12:18:56 +0200
changeset 805263 52c23f361adb710197c59fcb3f75dc7145b8ea09
parent 805262 60828108f4b8492d4de455e949be190b8e173af9
child 805264 15fc5d2e7faf3309e399331fd592ae6804c0c574
child 805698 38565463f6c7ddf3580d95ac29513d83f0610274
push id112610
push userbmo:gl@mozilla.com
push dateThu, 07 Jun 2018 15:48:24 +0000
reviewersjonco
bugs1465472
milestone62.0a1
Bug 1465472 followup - Remove (now always-false) check for atoms compartment. r=jonco
js/src/gc/GC.cpp
--- a/js/src/gc/GC.cpp
+++ b/js/src/gc/GC.cpp
@@ -4545,17 +4545,17 @@ GCRuntime::markCompartments()
             }
         }
     }
 
     /* Set scheduleForDestruction based on maybeAlive. */
 
     for (GCCompartmentsIter comp(rt); !comp.done(); comp.next()) {
         MOZ_ASSERT(!comp->gcState.scheduledForDestruction);
-        if (!comp->gcState.maybeAlive && !comp->zone()->isAtomsZone())
+        if (!comp->gcState.maybeAlive)
             comp->gcState.scheduledForDestruction = true;
     }
 }
 
 void
 GCRuntime::updateMallocCountersOnGCStart()
 {
     // Update the malloc counters for any zones we are collecting.