Closed
Bug 836309
Opened 12 years ago
Closed 12 years ago
Don't CC or ForgetSkippable before the first normal GC run
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
DUPLICATE
of bug 836457
People
(Reporter: ehsan.akhgari, Unassigned)
Details
(Whiteboard: [Snappy])
We should make sure to not gc before the first paint, if possible, since that will delay the first paint needlessly. We may also get into a situation where the startup is taking too long, and we end up GCing making it take even longer.
Generally I think we wait ten seconds before GCing at startup, which is longer than the normal period. We could increase this timer, but hopefully not many people's startup takes longer than 10 seconds. Also, the first GC is usually pretty fast.
Comment 2•12 years ago
|
||
The first CC is usually pretty huge...
Comment 3•12 years ago
|
||
Also if you are looking at this, you want to look at when the first CC is done, as if it hasn't had a GC before it, it will force one. So if say we're not delaying the CC properly, then we end up GCing right away too.
Comment 4•12 years ago
|
||
First CC shouldn't happen sooner than 6s after startup unless GC runs while doing some skippability
stuff, in which case it could happen as soon as 2s after GC.
Reporter | ||
Comment 5•12 years ago
|
||
So, given these comments, is this bug INVALID?
Comment 6•12 years ago
|
||
Unless you've seen it happen earlier than 6s, or if that is too soon.
Though we should probably bump back the CC so its delay is longer than the GCs. I think that's why I always get 1 CYCLE_COLLECTOR_NEED_GC right after startup.
Comment 7•12 years ago
|
||
Perhaps we could start the CC timer only after the first GC.
Reporter | ||
Comment 8•12 years ago
|
||
(In reply to comment #6)
> Unless you've seen it happen earlier than 6s, or if that is too soon.
Nah, Boris and I were just wondering about this on IRC.
> Though we should probably bump back the CC so its delay is longer than the GCs.
> I think that's why I always get 1 CYCLE_COLLECTOR_NEED_GC right after startup.
Feel free to morph this bug for that purpose if needed.
Updated•12 years ago
|
Assignee: general → nobody
Component: JavaScript Engine → XPCOM
OS: Mac OS X → All
Hardware: x86 → All
Summary: Do not gc before the first paint → Don't CC or ForgetSkippable before the first normal GC run
Comment 9•12 years ago
|
||
Um, I filed Bug 836457.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•