Move heap size accounting for nursery owned buffers into the buffer allocator
Categories
(Core :: JavaScript: GC, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox145 | --- | fixed |
People
(Reporter: jonco, Assigned: jonco)
References
(Blocks 1 open bug)
Details
Attachments
(3 external files)
Currently heap size accounting for nursery owned buffers is done in the nursery code, and originally all buffer allocations happened on this path. In future we're going to have more uses of the buffer allocator that don't go down this path so we should move the accounting for this memory to the buffer allocator itself.
| Assignee | ||
Comment 1•1 year ago
|
||
This refactors the buffer allocator code to use increase/decreaseHeapSize
methods for heap accounting internally.
| Assignee | ||
Comment 2•1 year ago
|
||
Previously we the accounting for nursery owned buffers happened in the nursery
while for tenured owned buffers this happened in the buffer allocator. This
moves the accouting for nursery owned buffers to the buffer allocator.
Accounting for malloced memory still happens in the nursery.
| Assignee | ||
Comment 3•1 year ago
|
||
Currently we pass an argument 'ownerWasTenured' when marking nursery owned
buffers. This is inconsitent with the 'nurseryOwned' argument which is used
everywhere else in the buffer allocator but has the opposite sense.
Refactor to use 'nurseryOwned' everywhere to make this simpler.
Comment 5•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/fcc83cff5ce8
https://hg.mozilla.org/mozilla-central/rev/1fbafdc07d14
https://hg.mozilla.org/mozilla-central/rev/b236f6ed3430
Description
•