WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
302540
VMManager::singleton() is not thread safe.
https://bugs.webkit.org/show_bug.cgi?id=302540
Summary
VMManager::singleton() is not thread safe.
Mark Lam
Reported
2025-11-14 10:35:23 PST
VMManager::singleton() may be called concurrently from multiple threads. Hence, the initialization of the singleton instance needs to be done in a thread safe manner. To fix this, we'll switch from using a NeverDestroyed<VMManager> to a LazyNeverDestroyed<VMManager>, and initialize it within a std::call_once, which is thread safe.
rdar://116953427
Attachments
Add attachment
proposed patch, testcase, etc.
Mark Lam
Comment 1
2025-11-14 10:35:44 PST
Correction, radar link should be:
rdar://164580639
Mark Lam
Comment 2
2025-11-14 10:51:13 PST
Pull request:
https://github.com/WebKit/WebKit/pull/53944
EWS
Comment 3
2025-11-14 12:51:24 PST
Committed
303054@main
(01e8c830aad1): <
https://commits.webkit.org/303054@main
> Reviewed commits have been landed. Closing PR #53944 and removing active labels.
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