Closed
Bug 1762861
Opened 2 years ago
Closed 2 years ago
gfx/thebes/gfxDWriteFonts.cpp fails clang thread safety analysis on Windows
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
RESOLVED
FIXED
101 Branch
Tracking | Status | |
---|---|---|
firefox101 | --- | fixed |
People
(Reporter: bryce, Assigned: jfkthame)
References
Details
Attachments
(1 file)
When building on Windows with thread safety analysis enabled and warnings as errors I get the following:
0:11.59 C:/projects/mozilla/mozilla-unified/gfx/thebes/gfxDWriteFonts.cpp(285,40): error: reading variable 'mUnscaledFont' requires holding mutex 'mLock' [-Werror,-Wthread-safety-analysis]
0:11.59 static_cast<UnscaledFontDWrite*>(mUnscaledFont.get());
0:11.59 ^
0:11.80 1 error generated.
Assignee | ||
Comment 1•2 years ago
|
||
Thanks, I'll look into this. (I think this may be a case where the annotations I added are too strict, and we don't actually need to take the lock here. Checking....)
Assignee: nobody → jfkthame
Assignee | ||
Comment 2•2 years ago
|
||
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1bee69377090 Make gfxFont::mUnscaledFont const and remove GUARDED_BY annotation, as it is inert once constructed. r=lsalzman
Comment 4•2 years ago
|
||
Backed out changeset 1bee69377090 (Bug 1762861) for causing bustages on gfxGDIFont.obj.
Backout link
Push with failures
Failure Log
Flags: needinfo?(jfkthame)
Updated•2 years ago
|
Attachment #9270678 -
Attachment description: Bug 1762861 - Make gfxFont::mUnscaledFont const and remove GUARDED_BY annotation, as it is inert once constructed. r=lsalzman → Bug 1762861 - Remove GUARDED_BY annotation from gfxFont::mUnscaledFont, as it is inert once constructed so locking is not required. r=lsalzman
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e660dce5e760 Remove GUARDED_BY annotation from gfxFont::mUnscaledFont, as it is inert once constructed so locking is not required. r=lsalzman
Comment 6•2 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 2 years ago
status-firefox101:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
Assignee | ||
Updated•2 years ago
|
Flags: needinfo?(jfkthame)
You need to log in
before you can comment on or make changes to this bug.
Description
•