WebKit
WebKit copied to clipboard
[PlayStation] Replace OSAllocator implementation with memory-extra private library
https://bugs.webkit.org/show_bug.cgi?id=274221
Reviewed by NOBODY (OOPS!).
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:
Pull Request Template
File a Bug
All changes should be associated with a bug. The WebKit project is currently using Bugzilla as our bug tracker. Note that multiple changes may be associated with a single bug.
Provided Tooling
The WebKit Project strongly recommends contributors use Tools/Scripts/git-webkit
to generate pull requests. See Setup and Contributing Code for how to do this.
Template
If a contributor wishes to file a pull request manually, the template is below. Manually-filed pull requests should contain their commit message as the pull request description, and their commit message should be formatted like the template below.
Additionally, the pull request should be mentioned on Bugzilla, labels applied to the pull request matching the component and version of the Bugzilla associated with the pull request and the pull request assigned to its author.
https://bugs.webkit.org/show_bug.cgi?id=##### Reviewed by NOBODY (OOPS!). Explanation of why this fixes the bug (OOPS!). * path/changed.ext: (function): (class.function):
https://github.com/WebKit/WebKit/commit/75876b0080c4b213202ecae59c79d9582fd5fc5f
EWS run on current version of this PR (hash https://github.com/WebKit/WebKit/commit/75876b0080c4b213202ecae59c79d9582fd5fc5f)
Committed 278920@main (3042eb64bb03): https://commits.webkit.org/278920@main
Reviewed commits have been landed. Closing PR #28603 and removing active labels.