Ignore memory-pressure if we've begun to shut down
Categories
(Core :: XPCOM, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox75 | --- | fixed |
People
(Reporter: mccr8, Assigned: mccr8)
References
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
While looking over crash reports where we are hanging, I found this interesting report: bp-32dc5e7a-8be3-46dd-91e5-24f820200306
IPCShutdownState is "SendFinishShutdown (sent)", which I think means we've started to shutdown. The shutdown stack shows that we're GCing in response to memory pressure when we hang. This seems pretty silly. We'd rather the entire content process just goes away, so I think we should ignore memory pressure once we're in a shutdown state. This should be about one or two lines of code to do.
Doing some searching on crash stats, this doesn't look like it is very common. Presumably once we've started shutting down ContentChild we're going to ignore ContentChild::RecvFlushMemory messages, so maybe it only affects memory flushing that was already in progress when we decided to shut down the child.
Assignee | ||
Comment 1•5 years ago
|
||
If we're in the middle of shutting down a content process, don't GC if we get a
memory pressure event. Shutting down the process is a better way to free memory!
This doesn't seem to happen much, presumably because once we've started
shutting down the content process we ignore new messages, like ones telling
us to do memory-pressure.
Assignee | ||
Comment 2•5 years ago
|
||
I looked at the other places we start a GC in nsJSEnvironment, and the rest are from the timers that I dealt with in the other patch.
Assignee | ||
Updated•5 years ago
|
Comment 4•5 years ago
|
||
bugherder |
Description
•