Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f479ae9f534c9e093b97fad9c186f4c2d8513f45
https://github.com/WebKit/WebKit/commit/f479ae9f534c9e093b97fad9c186f4c2d8513f45
Author: Yusuke Suzuki <[email protected]>
Date: 2026-08-24 (Mon, 24 Aug 2026)
Changed paths:
M Source/JavaScriptCore/heap/Heap.cpp
M Source/JavaScriptCore/wasm/WasmTypeDefinition.cpp
M Source/JavaScriptCore/wasm/WasmTypeDefinition.h
M Source/JavaScriptCore/wasm/js/JSWebAssemblyModule.cpp
Log Message:
-----------
[JSC] Do not clean up Wasm Type registry repeatedly
https://bugs.webkit.org/show_bug.cgi?id=322439
rdar://185720499
Reviewed by Yijia Huang.
We are cleaning up Wasm Type registry whenever destroying Wasm Modules.
But this is happening too much. We should batch them by destroying many
Wasm Modules. We put a global flag (becuase Wasm Type registry is
global), and doing clean up when it is set in GC end epilogue / VM
shutdown timing.
* Source/JavaScriptCore/heap/Heap.cpp:
(JSC::Heap::lastChanceToFinalize):
(JSC::Heap::clearConcurrentRetainedDataIfPossible):
* Source/JavaScriptCore/wasm/WasmTypeDefinition.cpp:
(JSC::Wasm::TypeInformation::requestCleanup):
(JSC::Wasm::TypeInformation::cleanupIfRequested):
* Source/JavaScriptCore/wasm/WasmTypeDefinition.h:
* Source/JavaScriptCore/wasm/js/JSWebAssemblyModule.cpp:
(JSC::JSWebAssemblyModule::destroy):
Canonical link: https://commits.webkit.org/319731@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications