Closed Bug 1191143 Opened 9 years ago Closed 7 years ago

Cancel CPOWs in both processes when entering nested event loops

Categories

(Core :: IPC, defect, P3)

defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox42 --- affected
firefox44 --- fixed

People

(Reporter: billm, Assigned: billm)

References

Details

(Keywords: perf)

Attachments

(1 file)

Attached patch patch (deleted) — Splinter Review
Right now, if we send a CPOW to the child and it runs a nested event loop, we cancel the CPOW. However, a related issue can happen in the parent as well if you send a sync message from child to parent and the parent runs a nested event loop. This can happen if an event is triggered on a page and the event handler in the chrome process opens an alert or something.

This patch cancels the sync message in the same way, although only if it's high priority. Normal priority sync messages can't be canceled. Luckily, we're much more careful with normal-priority sync messages. High priority messages are harder because typically trigger add-on code, which can do almost anything.
Attachment #8643386 - Flags: review?(dvander)
Attachment #8643386 - Flags: review?(dvander) → review+
https://hg.mozilla.org/mozilla-central/rev/52e0192973b3
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
Backed out to see if it's related to a topcrash.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
FYI backing this out seems to have regressed tps:

http://treeherder.mozilla.org/perf.html#/comparesubtest?originalProject=mozilla-inbound&newProject=mozilla-inbound&originalRevision=2499a66d5b37&newRevision=b268160e8919&originalSignature=2134698ffee49a2f33235c3640553083cf715b8a&newSignature=2134698ffee49a2f33235c3640553083cf715b8a

Running a few retriggers to be sure. I'll let jmaher weigh in when he returns, but it doesn't seem sensible to demand that this be fixed given the magnitude of the regression -- of course making sure things work properly is the correct trade off. Just giving a heads up.
Keywords: perf
There was an "improvement" in Talos numbers when bug 967873 landed and a "regression" when it was backed out. I suspect both of these are spurious changes anyway, but in any case, this bug is unlikely to be involved. It was just backed out at the same time as bug 967873.
I don't think there is anything specific to do here, we landed something, got an improvement and backed it out.  I did some retriggers and the link in comment 5 shows a lot of details now.

It will be nice to see this land again if possible- perf improvements are good.
Blocks: 1238856
(In reply to Bill McCloskey (:billm) from comment #4)
> Backed out to see if it's related to a topcrash.

Should we reland this?
Flags: needinfo?(wmccloskey)
Flags: needinfo?(wmccloskey)
Priority: -- → P3
Target Milestone: mozilla44 → ---
Status: REOPENED → RESOLVED
Closed: 9 years ago7 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: