WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
226446
Stop using WTF_IGNORES_THREAD_SAFETY_ANALYSIS in MediaRecorderPrivateWriter code
https://bugs.webkit.org/show_bug.cgi?id=226446
Summary
Stop using WTF_IGNORES_THREAD_SAFETY_ANALYSIS in MediaRecorderPrivateWriter code
Chris Dumez
Reported
2021-05-30 19:32:05 PDT
Stop using WTF_IGNORES_THREAD_SAFETY_ANALYSIS in MediaRecorderPrivateWriter code by refactoring the code slightly.
Attachments
Patch
(3.90 KB, patch)
2021-05-30 19:33 PDT
,
Chris Dumez
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2021-05-30 19:33:25 PDT
Created
attachment 430165
[details]
Patch
Darin Adler
Comment 2
2021-05-31 16:51:30 PDT
Comment on
attachment 430165
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=430165&action=review
> Source/WebCore/ChangeLog:10 > + this thread safety checks do not apply to destructors.
"this" -> "since" Seems like this doesn’t really make anything safer! Just quiets the compiler.
Chris Dumez
Comment 3
2021-05-31 17:01:32 PDT
Comment on
attachment 430165
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=430165&action=review
>> Source/WebCore/ChangeLog:10 >> + this thread safety checks do not apply to destructors. > > "this" -> "since" > > Seems like this doesn’t really make anything safer! Just quiets the compiler.
I think it makes the code look safer. There is a reason clang doesn't apply threading checks to constructors and destructors: there is usually a single thread when those are executed. I much prefer this than having a separate clear() function annotated with WTF_IGNORES_THREAD_SAFETY_ANALYSIS, which might get called from outside the destructor in the future, in an unsafe way.
Chris Dumez
Comment 4
2021-05-31 17:05:01 PDT
Committed
r278286
(
238323@main
): <
https://commits.webkit.org/238323@main
>
Radar WebKit Bug Importer
Comment 5
2021-05-31 17:05:20 PDT
<
rdar://problem/78695299
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug