[webkit-changes] [WebKit/WebKit] 2645a1: [JSC] Emit dyld tracepoint to tell system profiler...
Yusuke Suzuki
noreply at github.com
Thu Mar 21 21:04:38 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2645a1e90e1c5a900b1df995cd44e6c29ee06ad6
https://github.com/WebKit/WebKit/commit/2645a1e90e1c5a900b1df995cd44e6c29ee06ad6
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2024-03-21 (Thu, 21 Mar 2024)
Changed paths:
M Source/JavaScriptCore/jit/ExecutableAllocator.cpp
M Source/WTF/wtf/ByteOrder.h
M Source/WTF/wtf/UUID.cpp
M Source/WTF/wtf/UUID.h
Log Message:
-----------
[JSC] Emit dyld tracepoint to tell system profiler about JIT code region
https://bugs.webkit.org/show_bug.cgi?id=271419
rdar://125196249
Reviewed by Justin Michaud.
This patch emits fake dyld tracepoint which tells our system profiler (see SystemTracing.h) about JIT code region.
We need to assign good UUID to this JIT code region. And since this is JIT code, each process has different JIT code.
Thus, we create v5 UUID from process ID and namespace UUID and attach it to JIT code region.
* Source/JavaScriptCore/jit/ExecutableAllocator.cpp:
(JSC::initializeJITPageReservation):
* Source/WTF/wtf/ByteOrder.h:
(WTF::bswap64):
* Source/WTF/wtf/UUID.cpp:
(WTF::UUID::createVersion5):
* Source/WTF/wtf/UUID.h:
Canonical link: https://commits.webkit.org/276524@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list