Add a way of verifying post barriers
Categories
(Core :: JavaScript: GC, task, P2)
Tracking
()
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.
Assignee | ||
Comment 1•18 days ago
|
||
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.
Updated•18 days ago
|
Updated•18 days ago
|
Assignee | ||
Comment 2•18 days ago
|
||
I realised we had a function to enable/disable this before the previous
impelementation was removed. Update it to use the new implementation.
https://hg.mozilla.org/mozilla-central/rev/ca706c73b207
https://hg.mozilla.org/mozilla-central/rev/71ed4365f9d2
Description
•