Closed
Bug 1415721
Opened 5 years ago
Closed 1 month ago
Revisit where to call SweepScriptData
Categories
(Core :: JavaScript: GC, enhancement, P3)
Core
JavaScript: GC
Tracking
()
RESOLVED
FIXED
104 Branch
People
(Reporter: tcampbell, Assigned: jonco)
Details
Attachments
(1 file)
https://searchfox.org/mozilla-central/rev/c99d035f00dd894feff38e4ad28a73fb679c63a6/js/src/jsgc.cpp#6484-6490 This comment - added over a decade ago - gives reasons why SweepScriptData should be deferred to this point. The destroyScriptHook no longer exists, and the SharedScriptData no longer contains any filenames (it has bytecode, atom references, and srcnotes). As a result there may be a more optimal place to call SweepScriptData. This involves scanning a hashmap of all bytecode in the runtime and then calling js_free for some of them.
Reporter | ||
Comment 1•5 years ago
|
||
Paul, perhaps this is a more relevant exercise for you than for me.
Assignee: nobody → pbone
status-firefox56:
--- → wontfix
status-firefox57:
--- → wontfix
status-firefox58:
--- → fix-optional
status-firefox-esr52:
--- → wontfix
status-thunderbird_esr52:
--- → wontfix
Priority: -- → P3
Comment 2•5 years ago
|
||
Thanks. I'll take a look some time, but it looks like there's no hurry for this. is that right?
Flags: needinfo?(tcampbell)
Reporter | ||
Comment 3•5 years ago
|
||
No hurry. Just another potential item for gc cleanup / parallel tasks.
Flags: needinfo?(tcampbell)
Assignee | ||
Comment 4•5 years ago
|
||
(In reply to Ted Campbell [:tcampbell] from comment #0) Hah, that comment is just meaningless now. We sweep scripts incrementally in the foreground so perhaps it would be possible to remove the entries from this table as we go.
Updated•5 years ago
|
Assignee: pbone → cduan
Comment 5•5 years ago
|
||
https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Move_fix-optionals
status-firefox59:
--- → ?
Comment 6•2 months ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Assignee: f103119 → nobody
Assignee | ||
Comment 7•1 month ago
|
||
Updated•1 month ago
|
Assignee: nobody → jcoppeard
Status: NEW → ASSIGNED
Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/567988aea937 Update outdated comment about when to sweep shared script data r=sfink
Comment 9•1 month ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
status-firefox104:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Updated•1 month ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•