mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Bug 1415721 - Update outdated comment about when to sweep shared script data r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D150461
This commit is contained in:
parent
2783d51864
commit
b2755f1bad
@ -2300,12 +2300,8 @@ void GCRuntime::endSweepPhase(bool destroyingRuntime) {
|
||||
{
|
||||
gcstats::AutoPhase ap(stats(), gcstats::PhaseKind::DESTROY);
|
||||
|
||||
/*
|
||||
* Sweep script filenames after sweeping functions in the generic loop
|
||||
* above. In this way when a scripted function's finalizer destroys the
|
||||
* script and calls rt->destroyScriptHook, the hook can still access the
|
||||
* script's filename. See bug 323267.
|
||||
*/
|
||||
// Sweep shared script bytecode now all zones have been swept and finalizers
|
||||
// for BaseScripts have released their references.
|
||||
SweepScriptData(rt);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user