WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
188820
Remove extern variable and simplify state initialization in TextCheckerMac.mm
https://bugs.webkit.org/show_bug.cgi?id=188820
Summary
Remove extern variable and simplify state initialization in TextCheckerMac.mm
Daniel Bates
Reported
2018-08-21 15:07:55 PDT
Currently TextCheckerMac.mm stores the TextCheckerState object in a file-local variables that has external linkage. This is unnecessary. Moreover we need to do a dance with other static variables to initialize this external variable exactly once per process. We should use a static file-local, non-member function and NeverDestroyed to simplify this code.
Attachments
Patch
(13.66 KB, patch)
2018-08-21 15:12 PDT
,
Daniel Bates
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Daniel Bates
Comment 1
2018-08-21 15:12:02 PDT
Created
attachment 347707
[details]
Patch
Daniel Bates
Comment 2
2018-08-27 10:09:25 PDT
Comment on
attachment 347707
[details]
Patch Clearing flags on attachment: 347707 Committed
r235379
: <
https://trac.webkit.org/changeset/235379
>
Daniel Bates
Comment 3
2018-08-27 10:09:27 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 4
2018-08-27 10:10:17 PDT
<
rdar://problem/43758177
>
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