Bug 1547179 - Remove an assertion that's no longer valid because rt->profilingScripts no longer implies IsLCovEnabled. r=nbp

Differential Revision: https://phabricator.services.mozilla.com/D28952

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jan de Mooij 2019-05-03 12:28:57 +00:00
parent cc7e371160
commit 0ef93c53db

View File

@ -338,12 +338,10 @@ void Realm::traceRoots(JSTracer* trc,
// keys of the HashMap to avoid adding a strong reference to the JSScript
// pointers.
//
// If the code coverage is either enabled with the --dump-bytecode command
// line option, or with the PCCount JSFriend API functions, then we mark the
// keys of the map to hold the JSScript alive.
// If the --dump-bytecode command line option or the PCCount JSFriend API
// is used, then we mark the keys of the map to hold the JSScript alive.
if (scriptCountsMap && trc->runtime()->profilingScripts &&
!JS::RuntimeHeapIsMinorCollecting()) {
MOZ_ASSERT_IF(!trc->runtime()->isBeingDestroyed(), collectCoverage());
for (ScriptCountsMap::Range r = scriptCountsMap->all(); !r.empty();
r.popFront()) {
JSScript* script = const_cast<JSScript*>(r.front().key());