Closed Bug 950949 Opened 11 years ago Closed 11 years ago

Run extra forgetSkippable calls per CC not per slice

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: mccr8, Assigned: mccr8)

References

Details

Attachments

(1 file)

The extra forget skippable logic should be moved out of PrepareForCycleCollectionSlice and into BeginCycleCollectionCallback. This will require passing the extra forget skippable count via gCCStats. This will fix the case where the browser is in the middle of an ICC, then nsJSContext::CycleCollectNow gets called with positive aExtraForgetSkippableCalls, which get triggered before the ICC is finished, and thus ignored. This will also let us turn the dynamic check in nsCycleCollector::ForgetSkippable that we're idle into an assert. I think this isn't pressing because we don't request extra forgetSkippable calls in normal circumstances, but it should be a nice cleanup.
Assignee: nobody → continuation
Attachment #8355024 - Flags: review?(bugs) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: