In bug 521750 we're going to make the cycle collector fault (instead of crashing) if external code uses it incorrectly off the main thread. This will fire a cycle-collector-fault observer notification. The user's browser is likely to leak like a sieve after the cycle collector faults, and they should restart at the first opportunity (and probably disable some extensions). This bug is about whatever UI Firefox needs to make this happen.
Nominating for 3.6 but since we're past string freeze that doesn't seem likely.
Yeah, past string freeze (wish someone brought it up last week when Axel was asking if there were any strings outstanding, or that I'd noticed it before then) so I don't think there's a lot we can do about this. Adding user-doc-needed to get SUMO attention; post Firefox 3.6 we might see memory ramping due to lack of cycle collection. A better trade off than crashing, but we might want to add this to any "Firefox is using a lot of memory" documentation. Benjamin: can you quantify "like a sieve"? Firefox 2 era memory leaks?
No, worse, as in "gmail or facebook will use all your memory in 5-10 minutes if not sooner".
Given how reliant we are on the CC these days, I think we should just abort. As a bonus, we'll be able to see when this happens in Socorro. bsmedberg, do you have objections to changing the cc fault to NS_RUNTIMEABORT?
No, I think you should go for it (on -central). Please ask crashkill to watch for upticks related to this.
khuey, if you don't have time to do this in the next week or so let me know and I can do it. Probably best to wait until Firefox 14 at this point.
Created attachment 605136 [details] [diff] [review] make cycle collector faults fatal, plus a little cleanup of faults
Created attachment 606250 [details] [diff] [review] make cycle collector faults fatal I did a try run on Linux for an earlier version that was fine. I'll do a full try run before I land it.
Comment on attachment 606250 [details] [diff] [review] make cycle collector faults fatal Does this sound reasonable to you, Peter?
Created attachment 606279 [details] [diff] [review] make cycle collector faults fatal Gavin pointed out that I flipped the cases in the if. I managed to mangle the code when I was undoing some changes I made before. Carrying forward smaug's review.