Closed Bug 1512969 Opened 6 years ago Closed 6 years ago

Add assertions about cross compartment marking

Categories

(Core :: JavaScript: GC, enhancement)

61 Branch
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(1 file)

When we calculate the sweep groups we arrange things so that a cross compartment pointer to an unmarked cell in a different zone ensures that the target zone is not swept before the source zone (otherwise we may free a reachable thing before it has been marked). This patch adds assertions to the marking code that we never encounter a cross compartment pointer to something that hasn't been marked in a sweeping zone.
Attachment #9030223 - Flags: review?(sphink)
Attachment #9030223 - Flags: review?(sphink) → review+
Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/9e8ec8556200 Add cross-compartment marking assertion to catch errors in sweep groups calculation r=sfink
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: