Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c0b0c8d82e2292c1a26d0a23878473ffefaf8028
https://github.com/WebKit/WebKit/commit/c0b0c8d82e2292c1a26d0a23878473ffefaf8028
Author: Yusuke Suzuki <[email protected]>
Date: 2026-03-18 (Wed, 18 Mar 2026)
Changed paths:
M Source/JavaScriptCore/assembler/PerfLog.cpp
M Source/JavaScriptCore/runtime/ProfilerSupport.cpp
M Source/JavaScriptCore/runtime/ProfilerSupport.h
Log Message:
-----------
[JSC] Flush ProfilerSupport queue at jsc shell exit
https://bugs.webkit.org/show_bug.cgi?id=310227
rdar://172869612
Reviewed by Keith Miller.
This adds ProfilerSupport::barrierSync to flush all tasks, and in JSC shell,
we use this with std::atexit to ensure that all of Profiler tasks are
flushed before exiting. This is necessary when your JITDump has large
size and taking long time to flush for example.
* Source/JavaScriptCore/assembler/PerfLog.cpp:
(JSC::PerfLog::log):
* Source/JavaScriptCore/runtime/ProfilerSupport.cpp:
(JSC::ProfilerSupport::ProfilerSupport):
(JSC::ProfilerSupport::barrierSync):
* Source/JavaScriptCore/runtime/ProfilerSupport.h:
Canonical link: https://commits.webkit.org/309521@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications