[webkit-changes] [WebKit/WebKit] 4c277e: [JSC] Use TerminateProcess for Windows
Yusuke Suzuki
noreply at github.com
Mon Mar 27 21:17:05 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4c277ef7513887fe3c335b087572cb30bd1aec9f
https://github.com/WebKit/WebKit/commit/4c277ef7513887fe3c335b087572cb30bd1aec9f
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2023-03-27 (Mon, 27 Mar 2023)
Changed paths:
M Source/JavaScriptCore/jsc.cpp
Log Message:
-----------
[JSC] Use TerminateProcess for Windows
https://bugs.webkit.org/show_bug.cgi?id=254566
rdar://107296359
Reviewed by Mark Lam.
Forcefully terminate the process via TerminateProcess on Windows at the end of main function in JSC shell.
We are running concurrent collectors and normal exit procedure can cause dead lock on Windows since Windows
does not really have "main thread" concept: on the other platforms, when main thread dies, everything gets
shut down. But on Windows, it is not.
* Source/JavaScriptCore/jsc.cpp:
(JSC::jscExit):
Canonical link: https://commits.webkit.org/262193@main
More information about the webkit-changes
mailing list