Closed
Bug 1457246
Opened 7 years ago
Closed 7 years ago
Don't hold the sIndirectLayerTreesLock while cloning the WebRenderAPI
Categories
(Core :: Graphics: WebRender, enhancement)
Tracking
()
RESOLVED
FIXED
mozilla61
Tracking | Status | |
---|---|---|
firefox61 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
References
Details
(Whiteboard: [gfx-noted])
Attachments
(1 file)
We grab the lock at https://searchfox.org/mozilla-central/rev/78dbe34925f04975f16cb9a5d4938be714d41897/gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp#213 and then clone the API at https://searchfox.org/mozilla-central/rev/78dbe34925f04975f16cb9a5d4938be714d41897/gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp#239. This is not great, because the cloning process does a blocking call on the render backend thread, and this entangles the two threads unnecessarily. I had a local build where I was trying some scene builder changes and those changes combined with this triggered a deadlock which I think is easily avoidable.
Comment hidden (mozreview-request) |
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8971363 [details]
Bug 1457246 - Don't hold the sIndirectLayerTreesLock while making synchronous calls to the RenderBackend thread.
https://reviewboard.mozilla.org/r/240118/#review245982
Looks good. Good catch!
Attachment #8971363 -
Flags: review?(sotaro.ikeda.g) → review+
Pushed by kgupta@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d52b265b6b52
Don't hold the sIndirectLayerTreesLock while making synchronous calls to the RenderBackend thread. r=sotaro
Comment 4•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in
before you can comment on or make changes to this bug.
Description
•