Closed Bug 1687002 Opened 5 years ago Closed 5 years ago

The incremental marking validator doesn't work

Categories

(Core :: JavaScript: GC, defect)

defect

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: jonco, Assigned: jonco)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

While working on refactoring the Chunk layout I noticed that the marking validator doesn't actually do anything. Although the ChunkBitmap methods to check mark bits are not static, they don't use |this| but find the bitmap from the cell pointer given. This means the marking validator effectively compares each mark bitmap against itself.

This is the code in question: https://searchfox.org/mozilla-central/source/js/src/gc/Verifier.cpp#704-726

This stems from the change to define GetGCThingMarkWordAndMask in HeapAPI.h so that it could be inlined externally to the engine.

This patch makes ChunkBitmap::getMarkWordAndMask into an instance method so that the uses in MarkingValidator access the correct bitmap.

Depends on D101778

Assignee: nobody → jcoppeard
Status: NEW → ASSIGNED
Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/abdfa91676ff Fix incremental marking validator r=sfink
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: