[webkit-changes] [WebKit/WebKit] da4298: [WTF] Leave top granule of SequesteredArenaAllocat...
Marcus Plutowski
noreply at github.com
Thu Feb 27 13:52:07 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: da4298fbcd76378ad2d2b03a8212ea79854ec94f
https://github.com/WebKit/WebKit/commit/da4298fbcd76378ad2d2b03a8212ea79854ec94f
Author: Marcus Plutowski <marcus_plutowski at apple.com>
Date: 2025-02-27 (Thu, 27 Feb 2025)
Changed paths:
M Source/WTF/wtf/DoublyLinkedList.h
M Source/WTF/wtf/SequesteredAllocator.h
Log Message:
-----------
[WTF] Leave top granule of SequesteredArenaAllocator behind
https://bugs.webkit.org/show_bug.cgi?id=288727
rdar://145760952
Reviewed by Yusuke Suzuki and Yijia Huang.
This is a neat and simple version of a thread-local cache. Since we know
that all objects in the granule will have been freed, we can freely
re-use it for the next allocation cycle -- thereby avoiding the initial
slow-path allocation for the first allocation of a compilation job.
Ideally, the granule size will be large enough that this will suffice
for most jobs.
* Source/WTF/wtf/DoublyLinkedList.h:
(WTF::DoublyLinkedList<T>::splitAt):
* Source/WTF/wtf/SequesteredAllocator.h:
Canonical link: https://commits.webkit.org/291255@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