[webkit-changes] [WebKit/WebKit] 3042eb: Replace OSAllocator implementation with memory-ext...
Basuke Suzuki
noreply at github.com
Fri May 17 11:44:20 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3042eb64bb0398dcc68f3fd6000f8c7d099caf73
https://github.com/WebKit/WebKit/commit/3042eb64bb0398dcc68f3fd6000f8c7d099caf73
Author: Basuke Suzuki <basuke.suzuki at sony.com>
Date: 2024-05-17 (Fri, 17 May 2024)
Changed paths:
M Source/JavaScriptCore/PlatformPlayStation.cmake
M Source/JavaScriptCore/shell/PlatformPlayStation.cmake
M Source/JavaScriptCore/testmem/PlatformPlayStation.cmake
M Source/JavaScriptCore/testmem/testmem.cpp
M Source/WTF/wtf/PlatformPlayStation.cmake
A Source/WTF/wtf/playstation/OSAllocatorPlayStation.cpp
M Source/WebCore/PlatformPlayStation.cmake
M Source/WebCore/page/playstation/ResourceUsageThreadPlayStation.cpp
M Source/cmake/OptionsPlayStation.cmake
M Tools/TestWebKitAPI/PlatformPlayStation.cmake
Log Message:
-----------
Replace OSAllocator implementation with memory-extra private library
https://bugs.webkit.org/show_bug.cgi?id=274221
Reviewed by Don Olmstead.
To reserve large address space, our platform requires precise control of virtual address
space and commiti/decommit management is not enough for this purpose. In this patch, I've
introduced new memory-extra private library for that purpose and add platform specific
OSAllocator implementation.
Also replace showmap library with embedded one inside memory-extra and use clever way to
collect memory information.
* Source/JavaScriptCore/PlatformPlayStation.cmake:
* Source/JavaScriptCore/shell/PlatformPlayStation.cmake:
* Source/JavaScriptCore/testmem/PlatformPlayStation.cmake:
* Source/JavaScriptCore/testmem/testmem.cpp:
(Footprint::now):
* Source/WTF/wtf/PlatformPlayStation.cmake:
* Source/WTF/wtf/playstation/OSAllocatorPlayStation.cpp: Added.
(WTF::OSAllocator::tryReserveAndCommit):
(WTF::OSAllocator::tryReserveUncommitted):
(WTF::OSAllocator::reserveUncommitted):
(WTF::OSAllocator::tryReserveUncommittedAligned):
(WTF::OSAllocator::reserveAndCommit):
(WTF::OSAllocator::commit):
(WTF::OSAllocator::decommit):
(WTF::OSAllocator::hintMemoryNotNeededSoon):
(WTF::OSAllocator::releaseDecommitted):
(WTF::OSAllocator::protect):
* Source/WebCore/PlatformPlayStation.cmake:
* Source/WebCore/page/playstation/ResourceUsageThreadPlayStation.cpp:
(WebCore::ResourceUsageThread::platformCollectMemoryData):
* Source/cmake/OptionsPlayStation.cmake:
* Tools/TestWebKitAPI/PlatformPlayStation.cmake:
Canonical link: https://commits.webkit.org/278920@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