mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
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:
parent
cc7e371160
commit
0ef93c53db
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user