Cached inline stylesheets do not release memory even after reloading the page and manually reducing memory
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
People
(Reporter: mayankleoboy1, Assigned: emilio)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(2 files, 1 external file)
This is the testcase from bug 1962946
STR:
- Open testcase
- Enter 2000 in the input-box
- Click on run. Wait for the page to get responsive which will take ~5s.
- Now hard reload the page (CTRL+SHIFT +R)
- Go to about:memory and click on "Manually reduce memory"
AR: in steps #4 and steps#5, the memory is not reduced
ER: It should?
The memory would go down before bug 1956486. So i am marking it as a regressor.
| Reporter | ||
Updated•10 months ago
|
Comment 1•10 months ago
|
||
Set release status flags based on info from the regressing bug 1956486
Updated•10 months ago
|
Updated•9 months ago
|
Comment 2•8 months ago
|
||
This does seem somewhat leak-ish; by repeating the steps (after force-reloading the test page), the reported memory usage increases further (and generating the about:memory report gets a lot slower).
Navigating away from the test page does result in the memory being released, it seems. Still, it looks like as long as we're on the test page (even after force-reloading and running minimize-memory), stale cached stuff is being a bit persistent.
| Reporter | ||
Comment 4•5 months ago
|
||
This is a much simpler testcase that repros the issue.
STR:
- Open testcase
- Click Generate
- Click Nativeclear
- Force-reload the page
- Go to about:memory and click on "Mnually free memory"
AR: Memory is not freed
ER: it should
| Assignee | ||
Comment 5•5 months ago
|
||
I made it a global thing rather than something more subtle like
nsExpirationTracker, because nsExpirationTracker doesn't deal super-well
with the nested hashtable structure and different kinds of entries, and
this seems like it should be good enough (idle runnable + delay).
Much like the atom table GC:
https://searchfox.org/firefox-main/source/xpcom/ds/nsAtomTable.cpp#456
Updated•5 months ago
|
| Assignee | ||
Updated•5 months ago
|
Updated•4 months ago
|
| Reporter | ||
Comment 8•4 months ago
|
||
This is fixed in nightly.
Profile: https://share.firefox.dev/4o4KWkw
Updated•4 months ago
|
Description
•