Closed Bug 502374 Opened 16 years ago Closed 16 years ago

Don't call cycle collector so often

Categories

(Core :: DOM: Core & HTML, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: smaug, Assigned: smaug)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
This adds the 10s limit to page loads and user inactivity. At least tryserver didn't show tp regression.
Attachment #386823 - Flags: superreview?(peterv)
Attachment #386823 - Flags: review?(peterv)
Comment on attachment 386823 [details] [diff] [review] patch >diff --git a/dom/base/nsJSEnvironment.cpp b/dom/base/nsJSEnvironment.cpp >+nsJSContext::IntervalCC() >+{ >+ if ((PR_Now() - sPreviousCCTime) >= >+ PRTime(NS_MIN_CC_INTERVAL * PR_USEC_PER_MSEC)) { >+ nsJSContext::CC(); >+ return PR_TRUE; >+ } >+#ifdef DEBUG_smaug >+ else { >+ printf("Running CC was delayed because of NS_MIN_CC_INTERVAL.\n"); >+ } Don't really need the else (after return) here.
Attachment #386823 - Flags: superreview?(peterv)
Attachment #386823 - Flags: superreview+
Attachment #386823 - Flags: review?(peterv)
Attachment #386823 - Flags: review+
Attached patch +commentsSplinter Review
Attachment #386823 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: