Closed Bug 1859335 Opened 11 months ago Closed 11 months ago

Refactor object moved hooks to remove duplicated logic

Categories

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

task

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: jonco, Assigned: jonco)

References

(Regressed 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(1 file)

Object moved hooks are called when an object is tenured and often deal with moving buffers owned by the object from the nursery to malloc memory and updating their memory accounting. This logic is present in a bunch of places. We should move it to a central utility method.

Besides being generally nicer, this will be useful for any kind of partial nursery collection since we will only have to update this logic in one place.

Severity: -- → S3
Priority: -- → P3
Blocks: 1853907
Whiteboard: [sp3]
Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/81da3438530d
Abstract out buffer handling logic from object moved hooks r=sfink
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
Regressions: 1866518
Regressions: 1892564
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: