Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: edcd534cc66fc2e5037f85a5acd120cd9b5d1f76
https://github.com/WebKit/WebKit/commit/edcd534cc66fc2e5037f85a5acd120cd9b5d1f76
Author: Marcus Plutowski <[email protected]>
Date: 2025-07-29 (Tue, 29 Jul 2025)
Changed paths:
A Source/ThirdParty/libwebrtc/Source/webrtc/modules/video_coding/sedoZSWjE
M Source/bmalloc/bmalloc/BPlatform.h
M Source/bmalloc/bmalloc/TZoneHeap.cpp
M Source/bmalloc/bmalloc/TZoneHeap.h
M Source/bmalloc/bmalloc/TZoneHeapInlines.h
M Source/bmalloc/bmalloc/TZoneHeapManager.cpp
M Source/bmalloc/bmalloc/TZoneHeapManager.h
Log Message:
-----------
[bmalloc] Add fuzzing option for TZone compaction
https://bugs.webkit.org/show_bug.cgi?id=295807
rdar://155639885
Reviewed by Mark Lam.
This allows us to test different configurations for the compaction of
types allocated with TZoneMalloc.
Currently this is only compiled-in in Debug builds, as the extra runtime
check it requires on the malloc hot-path would otherwise be pessimizing.
When it is compiled in, it is enabled with the envvar
'bmalloc_DynamicCompactModeEnable=1'.
To change the seed used from the default (which is tied to the TZone
seed), you can also set 'bmalloc_DynamicCompactModeSeed=0x<seed>'.
* Source/bmalloc/bmalloc/BPlatform.h:
* Source/bmalloc/bmalloc/TZoneHeap.cpp:
(bmalloc::api::getTZoneDynamicCompactionSalt):
(bmalloc::api::isTZoneDynamicCompactionEnabled):
* Source/bmalloc/bmalloc/TZoneHeap.h:
(bmalloc::api::fnv1aHash):
(bmalloc::api::encodeTZoneDynamicCompactionKey):
(bmalloc::api::shouldDynamicallyCompact):
(bmalloc::api::requiresCompactPointers):
* Source/bmalloc/bmalloc/TZoneHeapInlines.h:
* Source/bmalloc/bmalloc/TZoneHeapManager.cpp:
(bmalloc::api::TZoneHeapManager::dynamicCompactionSalt):
(bmalloc::api::TZoneHeapManager::init):
(bmalloc::api::TZoneHeapManager::initializeTZoneDynamicCompaction):
(bmalloc::api::TZoneHeapManager::TZoneHeapManager::heapRefForTZoneTypeDifferentSize):
* Source/bmalloc/bmalloc/TZoneHeapManager.h:
(bmalloc::api::TZoneHeapManager::tzoneDynamicCompactionEnabled):
Canonical link: https://commits.webkit.org/298007@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes