The profiling stack wastes 16KB of memory due to slop
Categories
(Core :: JavaScript Engine, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox82 | --- | fixed |
People
(Reporter: pbone, Assigned: pbone)
References
(Blocks 1 open bug)
Details
(Keywords: perf-alert, Whiteboard: [MemShrink][clownshoes])
Attachments
(2 files)
The code here expands the profiling stack by powers of two:
https://searchfox.org/mozilla-central/source/js/src/vm/ProfilingStack.cpp#31
But that's powers of two for the number of frames, while each frame is not a power of two. This causes allocations of 8KB when only 6KB was requested. There are 8 of these allocations in an example.com process wasting 16KB of memory.
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Depends on D88708
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Comment 4•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/aa156c2779c1
https://hg.mozilla.org/mozilla-central/rev/97220a9e8b69
Comment 5•5 years ago
|
||
== Change summary for alert #26851 (as of Wed, 02 Sep 2020 10:00:19 GMT) ==
Improvements:
6% Base Content Heap Unclassified windows10-64-shippable opt 1,555,402.00 -> 1,466,835.33
2% Heap Unclassified windows10-64-shippable opt 50,945,797.97 -> 49,691,298.62
For up to date results, see: https://treeherder.mozilla.org/perf.html#/alerts?id=26851
Description
•