Bug 244919

Summary: Make FontCache use ThreadSpecific instead of ThreadGlobalData
Product: WebKit Reporter: Matt Woodrow <mattwoodrow>
Component: Layout and RenderingAssignee: Matt Woodrow <mattwoodrow>
Status: RESOLVED WONTFIX    
Severity: Normal CC: bfulgham, commit-queue, heycam, simon.fraser, webkit-bug-importer, youennf, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=247655
Bug Depends on: 247774    
Bug Blocks: 183720, 246627    

Description Matt Woodrow 2022-09-07 19:06:26 PDT
ThreadGlobalData doesn't handle the case where we try to access it while it's being shut down, and the font code tries to do that.

ThreadSpecific should be faster, and safe for this case.
Comment 1 Matt Woodrow 2022-09-07 19:14:20 PDT
Pull request: https://github.com/WebKit/WebKit/pull/4118
Comment 2 Radar WebKit Bug Importer 2022-09-14 19:07:27 PDT
<rdar://problem/99947922>
Comment 3 EWS 2022-10-26 21:32:12 PDT
Committed 256048@main (21308fa925b8): <https://commits.webkit.org/256048@main>

Reviewed commits have been landed. Closing PR #4118 and removing active labels.
Comment 4 WebKit Commit Bot 2022-11-10 17:46:24 PST
Re-opened since this is blocked by bug 247774
Comment 5 Kimmo Kinnunen 2024-04-09 03:40:11 PDT
*** Bug 246627 has been marked as a duplicate of this bug. ***