Closed
Bug 1372512
Opened 8 years ago
Closed 8 years ago
Fix webrender Key leaks of WebRenderBridgeParent on abnormal shutdown
Categories
(Core :: Graphics: WebRender, defect)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: sotaro, Assigned: sotaro)
References
Details
Attachments
(1 file, 2 obsolete files)
9.46 KB,
patch
|
sotaro
:
review+
|
Details | Diff | Splinter Review |
There are still some possible key leaks in WebRenderBridgeParent
Assignee | ||
Comment 1•8 years ago
|
||
Assignee | ||
Comment 2•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Attachment #8877082 -
Flags: review?(nical.bugzilla)
Comment 3•8 years ago
|
||
Comment on attachment 8877082 [details] [diff] [review]
patch - Fix possible Key leaks of WebRenderBridgeParent
Review of attachment 8877082 [details] [diff] [review]:
-----------------------------------------------------------------
Same comment as in bug 1372066.
Attachment #8877082 -
Flags: review?(nical.bugzilla) → review?(bugmail)
Comment 4•8 years ago
|
||
Comment on attachment 8877082 [details] [diff] [review]
patch - Fix possible Key leaks of WebRenderBridgeParent
Review of attachment 8877082 [details] [diff] [review]:
-----------------------------------------------------------------
Same comment as in bug 1372066 - please explain where the leak is coming from. Without a commit message or any description in the bug it's hard to say if this patch is valid and it's impossible to properly review.
Attachment #8877082 -
Flags: review?(bugmail) → review-
Assignee | ||
Updated•8 years ago
|
Summary: Fix possible Key leaks of WebRenderBridgeParent → Fix webrender Key leaks of WebRenderBridgeParent
Assignee | ||
Comment 5•8 years ago
|
||
The leaks are very similar to Bug 1372066. The leak could happen on abnormal client shut down case and tab move case.
See Bug 1372066 Comment 9.
In the abnormal client shut down case, ImageKeys except keys of external image are leaked and FontKeys are leaked.
In the tab move case, the WebRenderBridgeParent will need to be re-bound to a different CompositorBridgeParent and webrender and so will need to clear all its active ImageKeys and FontKeys from the old webrender.
Assignee | ||
Updated•8 years ago
|
Summary: Fix webrender Key leaks of WebRenderBridgeParent → Fix webrender Key leaks of WebRenderBridgeParent on abnormal shutdown
Assignee | ||
Comment 6•8 years ago
|
||
Attachment #8877082 -
Attachment is obsolete: true
Assignee | ||
Updated•8 years ago
|
Attachment #8877935 -
Flags: review?(bugmail)
Comment 7•8 years ago
|
||
Comment on attachment 8877935 [details] [diff] [review]
patch - Fix webrender Key leaks of WebRenderBridgeParent on abnormal shutdown
Review of attachment 8877935 [details] [diff] [review]:
-----------------------------------------------------------------
your commit message has a typo: s/webernder/webrender/
r=me with typo fixed and comment below addressed
::: gfx/layers/wr/WebRenderBridgeParent.h
@@ +247,5 @@
> std::vector<wr::ImageKey> mKeysToDelete;
> + // mActiveImageKeys and mFontKeys are used to avoid leaking animations when
> + // WebRenderBridgeParent is destroyed abnormally and Tab move between different windows.
> + nsDataHashtable<nsUint64HashKey, wr::ImageKey> mActiveImageKeys;
> + nsDataHashtable<nsUint64HashKey, wr::FontKey> mFontKeys;
Again, use std::unordered_set<uint64_t> for both of these, don't need a hashtable.
Attachment #8877935 -
Flags: review?(bugmail) → review+
Assignee | ||
Comment 8•8 years ago
|
||
Addressed the comments.
Attachment #8877935 -
Attachment is obsolete: true
Assignee | ||
Updated•8 years ago
|
Attachment #8878299 -
Flags: review+
Assignee | ||
Comment 9•8 years ago
|
||
Comment 10•8 years ago
|
||
Pushed by sikeda@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/706d0255f5a5
Fix webrender Key leaks of WebRenderBridgeParent on abnormal shutdown r=kats
Comment 11•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•