You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 52a9721
Browse filesBrowse the repository at this point in the historyBrowse files
[JSC] Avoid repeated lock contension due to NativeCalleeRegistry registration
https://bugs.webkit.org/show_bug.cgi?id=312082
rdar://174588184
Reviewed by Keith Miller.
We found that IPIntCallee's registration is taking huge lock contension.
But its entrypoint generation is no longer costly as we use the shared
thunk. We should avoid doing these registration from the multiple thread
concurrently, and do them in a batched style when finalizing all callees
at the end. Also we should have Box<PCToCodeOriginMap> in
OptimizingJITCallee instead of having it in NativeCalleeRegistry.
* Source/JavaScriptCore/runtime/NativeCalleeRegistry.h:
(JSC::NativeCalleeRegistry::registerCallees):
(JSC::NativeCalleeRegistry::unregisterCallee):
(JSC::NativeCalleeRegistry::addPCToCodeOriginMap): Deleted.
* Source/JavaScriptCore/runtime/SamplingProfiler.cpp:
(JSC::FrameWalker::recordJITFrame):
* Source/JavaScriptCore/wasm/WasmBBQPlan.cpp:
(JSC::Wasm::BBQPlan::work):
* Source/JavaScriptCore/wasm/WasmCallee.cpp:
(JSC::Wasm::Callee::pcToCodeOriginMap const):
(JSC::Wasm::IPIntCallee::setEntrypointWithoutRegistration):
* Source/JavaScriptCore/wasm/WasmCallee.h:
(JSC::Wasm::Callee::pcToCodeOriginMapImpl const):
(JSC::Wasm::OptimizingJITCallee::pcToCodeOriginMapImpl const):
(JSC::Wasm::OptimizingJITCallee::setPCToCodeOriginMap):
* Source/JavaScriptCore/wasm/WasmIPIntPlan.cpp:
(JSC::Wasm::IPIntPlan::compileFunction):
(JSC::Wasm::IPIntPlan::didCompleteCompilation):
* Source/JavaScriptCore/wasm/WasmOMGPlan.cpp:
(JSC::Wasm::OMGPlan::work):
* Source/JavaScriptCore/wasm/WasmOSREntryPlan.cpp:
(JSC::Wasm::OSREntryPlan::work):
Canonical link: https://commits.webkit.org/311037@main
0 commit comments