Bug 213897

Summary: FloatingPointEnvironment::saveMainThreadEnvironment() is not called for macOS Catalyst apps on Apple Silicon
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebCore Misc.Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, ggaren, mark.lam, msaboff, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Chris Dumez 2020-07-02 12:36:16 PDT
FloatingPointEnvironment::saveMainThreadEnvironment() is not called on macOS with Apple Silicon. This causes crashes because FloatingPointEnvironment::propagateMainThreadEnvironment() for worker threads on this platform.
Comment 1 Chris Dumez 2020-07-02 12:36:28 PDT
<rdar://problem/64607098>
Comment 2 Chris Dumez 2020-07-02 12:44:32 PDT
Created attachment 403388 [details]
Patch
Comment 3 Darin Adler 2020-07-02 12:52:14 PDT
Comment on attachment 403388 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=403388&action=review

> Source/WebKit/Shared/ios/AuxiliaryProcessIOS.mm:55
>      UNUSED_PARAM(parameters);
>      UNUSED_PARAM(sandboxParameters);

We could remove the argument names now instead of using UNUSED_PARAM.
Comment 4 Chris Dumez 2020-07-02 12:58:13 PDT
Created attachment 403389 [details]
Patch
Comment 5 Mark Lam 2020-07-02 13:05:39 PDT
Comment on attachment 403389 [details]
Patch

r=me too.
Comment 6 EWS 2020-07-02 13:27:01 PDT
Committed r263857: <https://trac.webkit.org/changeset/263857>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 403389 [details].