Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add JSC API configuring GC signals in Linux
https://bugs.webkit.org/show_bug.cgi?id=220641 Reviewed by Mark Lam. Source/JavaScriptCore: Add JSConfigureSignalForGC function for Linux and FreeBSD (non Apple, non Windows platforms). * API/JSBase.cpp: (JSConfigureSignalForGC): * API/JSBasePrivate.h: Source/WTF: In Linux and FreeBSD, we need to use signals to suspend and resume threads. By default, we are using SIGUSR1, but it is possible that some embedders want to use the other signals since they are using SIGUSR1 already. To work-around that, this patch offers the way for embedders to configure signals. * wtf/Threading.h: * wtf/WTFConfig.h: * wtf/posix/ThreadingPOSIX.cpp: (WTF::Thread::signalHandlerSuspendResume): (WTF::Thread::initializePlatformThreading): (WTF::Thread::initializeCurrentThreadEvenIfNonWTFCreated): (WTF::Thread::initializeCurrentTLS): (WTF::Thread::suspend): (WTF::Thread::resume): * wtf/threads/Signals.cpp: (WTF::addSignalHandler): * wtf/win/ThreadingWin.cpp: (WTF::Thread::initializeCurrentTLS): Canonical link: https://commits.webkit.org/233096@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@271560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
22e0c65
commit aacd54f678f5ba81356590fb16497ae187c8052f
Showing
9 changed files
with
111 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters