Closed Bug 1580888 Opened 6 years ago Closed 5 years ago

Allow black marking during gray marking

Categories

(Core :: JavaScript: GC, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: sfink, Assigned: sfink)

References

Details

Attachments

(2 files)

For incremental weakmap marking, I need to be able to mix gray and black marking a little, due to weakmap CCW keys being preserved by their wrapped delegates. (If the delegate is black, then the key needs to be black, even if we were marking gray at the time we encountered the key.)

Sadly, it is very difficult to implement this without regressing memory usage. My current push doesn't look too bad, though: https://treeherder.mozilla.org/perf.html#/compare?originalProject=try&originalRevision=03818d9310a331b55ba396c2bb90bcb1673d7a5f&newProject=try&newRevision=b1c9ae391f6b226bf04abafb98c1f44bda2f923b&framework=4

The main result there is a 0.8% regression in awsy-base. I'm doing some more retriggers of the baseline to get a clearer picture (I didn't have enough Windows runs.)

Type: defect → enhancement
Pushed by sfink@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b4a752751ba0 Stop holding onto mark stack memory between GCs r=jonco https://hg.mozilla.org/integration/autoland/rev/1589fa5ffccb Split mark stack into main stack and spare stack. r=jonco
Pushed by sfink@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/730504cec75c Stop holding onto mark stack memory between GCs r=jonco
Pushed by sfink@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0b9a68f46ef5 Split mark stack into main stack and spare stack. r=jonco
Backout by apavel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/304f062595a5 Backed out changeset 0b9a68f46ef5 for assertion failures at ProtectedData.cpp on a CLOSED TREE
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
Assignee: nobody → sphink
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: mozilla72 → ---
Pushed by sfink@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8fcd8060719e Split mark stack into main stack and spare stack. r=jonco
Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
Flags: needinfo?(sphink)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: