Closed
Bug 1114345
Opened 10 years ago
Closed 10 years ago
Slow script dialog pops up after hibernating my machine
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla38
People
(Reporter: bent.mozilla, Assigned: billm)
References
Details
Attachments
(1 file)
6.03 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
If I leave ff open and hibernate my computer then I see the slow script dialog sometimes when I turn it back on. I'm guessing that this is fallout from bug 1111412 since I've only seen this in the last few days.
Updated•10 years ago
|
Flags: needinfo?(wmccloskey)
Assignee | ||
Comment 1•10 years ago
|
||
Yeah, I guess we probably need to the the usual "check twice" thing here. I wonder why this didn't happen before, though.
Assignee | ||
Comment 2•10 years ago
|
||
I think this should do the trick. Not sure how to test this though.
Assignee: nobody → wmccloskey
Status: NEW → ASSIGNED
Flags: needinfo?(wmccloskey)
Attachment #8543460 -
Flags: review?(bobbyholley)
Comment 3•10 years ago
|
||
Comment on attachment 8543460 [details] [diff] [review]
slow-script-laptop
Review of attachment 8543460 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/xpconnect/src/XPCJSRuntime.cpp
@@ +1301,5 @@
> // been running long enough that we might show the slow script dialog.
> // Triggering the callback from off the main thread can be expensive.
> + // We wait half the allotted time because the interrupt callback must
> + // fire twice before it's considered a slow script. This avoids problems
> + // with laptops going to sleep or time changes.
Can you explain the problematic situation in more detail?
@@ +1378,2 @@
> return true;
> }
While you're here (possibly in a separate patch underneath this one), can you remove this whole block? I believe it was obsoleted by bug 1111412, and it confused the heck out of my while I was trying to page this stuff back in.
::: js/xpconnect/src/xpcprivate.h
@@ +674,5 @@
> JS::PersistentRootedObject mCompilationScope;
> nsRefPtr<AsyncFreeSnowWhite> mAsyncSnowWhiteFreer;
>
> mozilla::TimeStamp mSlowScriptCheckpoint;
> + bool mSlowScriptSecondHalf;
Please comment profusely as to what each of these is about.
Attachment #8543460 -
Flags: review?(bobbyholley) → review+
Assignee | ||
Comment 4•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/10b0f190e1ef
> While you're here (possibly in a separate patch underneath this one), can you remove this
> whole block? I believe it was obsoleted by bug 1111412, and it confused the heck out of my
> while I was trying to page this stuff back in.
I don't think we can take this out. It's still possible to run JS code outside of an event handler. In that case we want to initialize the checkpoint there. I did update the comment to reflect this though.
Comment 5•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in
before you can comment on or make changes to this bug.
Description
•