Open Bug 2034417 Opened 6 months ago Updated 6 months ago

Investigate doing some buffer allocator sweeping on the main thread rather than allocating a new chunk

Categories

(Core :: JavaScript: GC, enhancement, P5)

enhancement

Tracking

()

People

(Reporter: jonco, Assigned: jonco)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

If we run out of allocated space for the buffer allocator while we're sweeping we could do some of that sweeping on the main thread, rather than allocating a new chunk from the OS. This could reduce the overall amount of memory usage.

I implemented this but it didn't show any improvement in memory use and hurt performance slightly in some benchmarks (crypto, pdfjs and typescript). While I feel this is a good idea I wasn't able to come up with a benchmark where we allocated more memory that necessary without this change so I'm parking it for now.

Severity: -- → N/A
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: