Closed Bug 1963019 Opened 20 days ago Closed 16 days ago

Add a way of verifying post barriers

Categories

(Core :: JavaScript: GC, task, P2)

task

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: jonco, Assigned: jonco)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

The original post barrier verifier was removed in bug 1161353 because it wasn't catching many bugs and was cumbersome to maintain. However I now find myself trying to find a presumed missing post barrier and wishing we had this feature.

This adds a zeal mode that triggers minor GC periodically and then walks the
heap looking for pointers into the nursery that should have been updated. It's
a slow but simple approach.

I tested this by changing CyclicModuleFields::metaObject to be PreBarriered
rather than HeapPtr and this caught it when running the jittests.

Assignee: nobody → jcoppeard
Status: NEW → ASSIGNED
Blocks: GC
Severity: -- → N/A
Priority: -- → P2

I realised we had a function to enable/disable this before the previous
impelementation was removed. Update it to use the new implementation.

Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ca706c73b207 Add a way of verifying post barriers r=sfink https://hg.mozilla.org/integration/autoland/rev/71ed4365f9d2 Hook up the post barrier verification mode to the existing testing function r=sfink
Status: ASSIGNED → RESOLVED
Closed: 16 days ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: