Resurrect GC'ed sources when attaching the debugger
Categories
(DevTools :: Debugger, enhancement, P2)
Tracking
(firefox70 fixed)
| Tracking | Status | |
|---|---|---|
| firefox70 | --- | fixed |
People
(Reporter: bhackett1024, Assigned: bhackett1024)
References
(Blocks 1 open bug)
Details
(Whiteboard: [debugger-reserve])
Attachments
(4 files)
As described in bug 1571592, the debugger should be able to show sources that were loaded into its target but have since been GC'ed along with all their contents. The strategy here is to keep track of the URLs that have been loaded into each non-system-zone realm, so that the debugger can query the information later even if it wasn't attached when the URL was loaded. The attached patch makes this change, limiting the number of URLs to 100 per realm and the URL length to 1024 to keep memory from getting out of control if there are lots of URLs or very long URLs (like data URLs). The URLs are purged on compacting GCs, which happen when there is memory pressure or the user has been idle a while, and shouldn't affect typical debugger use cases.
This patch is a WIP because for sources in HTML files it scans the file for potential inline scripts using some simple regexps. I'm going to try a little harder to see if this can be avoided.
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
Depends on D41682
| Assignee | ||
Comment 3•6 years ago
|
||
Depends on D41683
Updated•6 years ago
|
Comment 5•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/aaaa162990a6
https://hg.mozilla.org/mozilla-central/rev/492f6f5065e2
https://hg.mozilla.org/mozilla-central/rev/6b12a87f2d4a
Description
•