You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Bug 1539502 - [devtools] Prevent leaking all transient global while recording memory leaks. r=jdescottes
This is two reason for leaking the globals:
* The JIT/CachedIR that are introduced by trackingAllocationSites=true
and can be fixed by calling minimizeMemoryUsage to purge CachedIR objects.
* The Debugger::allocationsLog which relates to Debugger.Memory.drainAllocationLog
and can be fixed by calling drainAllocationLog to clear allocationsLog.
We also have to be careful about disable allocation site recording while doing the GCs.
On start and on stop.
Both were keeping strong references to the globals.
In this patch, I'm also extending the coverage of the AllocationTracker
to better assert what precise leaks are reported.
Differential Revision: https://phabricator.services.mozilla.com/D127777
Copy file name to clipboardExpand all lines: devtools/shared/test-helpers/browser.ini
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,4 +5,4 @@ support-files =
5
5
allocation-tracker.js
6
6
7
7
[browser_allocation_tracker.js]
8
-
skip-if = verify # Bug 1730507 - objects without stacks get allocated during the GC of the first test when running multiple times
8
+
skip-if = debug | verify # Bug 1730507 - objects without stacks get allocated during the GC of the first test when running multiple times. Also avoid running in debug as we don't try to track memory from debug builds.
0 commit comments