WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
234056
Use thread safe initialization for statics in Font::getCFStringAttributes
https://bugs.webkit.org/show_bug.cgi?id=234056
Summary
Use thread safe initialization for statics in Font::getCFStringAttributes
Cameron McCormack (:heycam)
Reported
2021-12-08 18:34:19 PST
Use thread safe initialization for statics in Font::getCFStringAttributes
Attachments
Patch
(3.65 KB, patch)
2021-12-08 18:35 PST
,
Cameron McCormack (:heycam)
darin
: review+
Details
Formatted Diff
Diff
Patch
(3.25 KB, patch)
2022-07-20 14:43 PDT
,
Matt Woodrow
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Cameron McCormack (:heycam)
Comment 1
2021-12-08 18:35:02 PST
Created
attachment 446476
[details]
Patch
Cameron McCormack (:heycam)
Comment 2
2021-12-08 18:35:54 PST
This is another one where the benefit of avoiding allocating these objects might be overwhelmed by the lines of code to do the caching.
Darin Adler
Comment 3
2021-12-08 19:02:28 PST
Comment on
attachment 446476
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=446476&action=review
> Source/WebCore/platform/graphics/mac/SimpleFontDataCoreText.cpp:46 > +static CFNumberRef zeroKerningValue()
This function just returns a float zero. I don’t think its name should include "kerning value". It can be reused by anyone who needs a 0.0f as a CFNumber.
Cameron McCormack (:heycam)
Comment 4
2021-12-09 23:53:27 PST
This too won't be needed if
bug 234102
works.
Radar WebKit Bug Importer
Comment 5
2021-12-15 18:35:16 PST
<
rdar://problem/86553412
>
Matt Woodrow
Comment 6
2022-07-20 14:43:08 PDT
Created
attachment 461058
[details]
Patch
EWS
Comment 7
2022-07-20 20:12:33 PDT
Committed
252677@main
(070a876c5310): <
https://commits.webkit.org/252677@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 461058
[details]
.
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