Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 101108025a14ad07924c2fff0bdea725abc0103d https://github.com/WebKit/WebKit/commit/101108025a14ad07924c2fff0bdea725abc0103d Author: Michael Saboff <msab...@apple.com> Date: 2024-11-11 (Mon, 11 Nov 2024)
Changed paths: M Source/bmalloc/bmalloc/TZoneHeapManager.cpp M Source/bmalloc/bmalloc/TZoneHeapManager.h Log Message: ----------- [TZone] Add API to allow processes to set their own bucket count policy https://bugs.webkit.org/show_bug.cgi?id=282697 rdar://problem/139367739 Reviewed by Yijia Huang. Added a new TZoneHeapManager function, initWithBucketSettings(), for setting bucket counts different than the default. After changing the bucket parameters, initWithBucketSettings will then initialize the TZone manager. Note that initWithBucketSettings must be called before the first TZone allocation, typically early in the main() function of a process. Also changed the default bucket counts to 5 buckets for small types, 3 buckets for large types, but left the maximum size of small types at 128 bytes. The changing of these defaults is based on performance and memory use testing. * Source/bmalloc/bmalloc/TZoneHeapManager.cpp: (bmalloc::api::TZoneHeapManager::setBucketParams): (bmalloc::api::TZoneHeapManager::init): (bmalloc::api::TZoneHeapManager::ensureSingleton): * Source/bmalloc/bmalloc/TZoneHeapManager.h: (bmalloc::api::TZoneHeapManager::singleton): (bmalloc::api::TZoneHeapManager::initWithBucketSettings): Canonical link: https://commits.webkit.org/286433@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes