Closed
Bug 937130
Opened 12 years ago
Closed 12 years ago
APZCTM::CommonAncestor doesn't acquire the tree lock
Categories
(Core :: Panning and Zooming, defect)
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: kats, Assigned: kats)
References
Details
Attachments
(1 file, 1 obsolete file)
11.76 KB,
patch
|
botond
:
review+
|
Details | Diff | Splinter Review |
The CommonAncestor function in APZCTreeManager should be holding the tree lock as it walks around in the tree, but currently does not.
Assignee | ||
Comment 1•12 years ago
|
||
Also RootAPZCForLayersId and GetInputTransforms
Assignee | ||
Comment 3•12 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=84cf2aded158 is looking green so far
Attachment #830202 -
Attachment is obsolete: true
Assignee | ||
Comment 4•12 years ago
|
||
Comment on attachment 830373 [details] [diff] [review]
Patch
Tested on a B2G debug build to ensure none of the assertions are tripping.
Attachment #830373 -
Flags: review?(botond)
Comment 5•12 years ago
|
||
Comment on attachment 830373 [details] [diff] [review]
Patch
Review of attachment 830373 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/layers/composite/APZCTreeManager.cpp
@@ +447,5 @@
> ScrollableLayerGuid* aOutTargetGuid,
> WidgetInputEvent* aOutEvent)
> {
> + MOZ_ASSERT(NS_IsMainThread());
> +
ProcessTouchEvent(), ProcessMouseEvent() and ProcessEvent() look like private helpers for the WidgetInputEvent overloads of ReceiveInputEvent(), which already assert this. Is there value in asserting again in the helpers?
Attachment #830373 -
Flags: review?(botond) → review+
Assignee | ||
Comment 6•12 years ago
|
||
I added the asserts to the private helpers because (a) when looking at the function in isolation it's more obvious which thread it's running on and (b) in case code is added to invoke the private helpers from some other method the assertions might catch errors.
Assignee | ||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
You need to log in
before you can comment on or make changes to this bug.
Description
•