[webkit-changes] [WebKit/WebKit] 55b569: [WTF] Add Malloc::nextCapacity feature and leverag...
Yusuke Suzuki
noreply at github.com
Thu Sep 5 13:48:48 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 55b569c1a9f9b2891c3e529c61c2f94f97995109
https://github.com/WebKit/WebKit/commit/55b569c1a9f9b2891c3e529c61c2f94f97995109
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2024-09-05 (Thu, 05 Sep 2024)
Changed paths:
M Source/JavaScriptCore/bytecode/InstructionStream.h
M Source/JavaScriptCore/runtime/CachedTypes.cpp
M Source/WTF/wtf/DebugHeap.h
M Source/WTF/wtf/FastMalloc.h
M Source/WTF/wtf/SystemMalloc.h
M Source/WTF/wtf/Vector.h
Log Message:
-----------
[WTF] Add Malloc::nextCapacity feature and leverage it in InstructionStreamBuffer
https://bugs.webkit.org/show_bug.cgi?id=279212
rdar://135358535
Reviewed by Keith Miller.
InstructionStreamBuffer gets shrinked at last. So increasing the size rapidly does not matter. And we know that this is a bottleneck in
BytecodeGenerator. This patch adds Malloc::nextCapacity which controls the next capacity based on the curent capacity. And we use customized
function for InstructionStreamBuffer.
* Source/JavaScriptCore/bytecode/InstructionStream.h:
* Source/JavaScriptCore/runtime/CachedTypes.cpp:
(JSC::CachedInstructionStream::decode const):
* Source/WTF/wtf/DebugHeap.h:
* Source/WTF/wtf/FastMalloc.h:
(WTF::FastMalloc::nextCapacity):
(WTF::FastCompactMalloc::nextCapacity):
* Source/WTF/wtf/SystemMalloc.h:
(WTF::SystemMalloc::nextCapacity):
* Source/WTF/wtf/Vector.h:
(WTF::Malloc>::expandCapacity):
Canonical link: https://commits.webkit.org/283231@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