Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d720aa247974bae1aab08eeb7951115b32da5c36
https://github.com/WebKit/WebKit/commit/d720aa247974bae1aab08eeb7951115b32da5c36
Author: Dan Hecht <[email protected]>
Date: 2026-07-14 (Tue, 14 Jul 2026)
Changed paths:
M Source/bmalloc/libpas/src/test/LargeFreeHeapTests.cpp
Log Message:
-----------
[libpas] Test zero_mode split preservation in LargeFreeHeapTests
https://bugs.webkit.org/show_bug.cgi?id=319338
rdar://182153719
Reviewed by Yusuke Suzuki.
Allocating a sub-range from a free region splits it (pas_large_free_split),
which must copy the region's zero_mode to both leftover halves and to the
allocation result. Add testSplitPreservesZeroMode (region seeded via
deallocate) and testSplitPreservesZeroModeFromSource (region returned fresh
by the memory source, also exercising the aligned-allocation zero_mode
path), each asserting both leftovers and the result keep the seed mode,
for is_all_zero and may_have_non_zero, on the simple and fast heaps.
Test: Source/bmalloc/libpas/src/test/LargeFreeHeapTests.cpp
* Source/bmalloc/libpas/src/test/LargeFreeHeapTests.cpp:
(std::testSplitPreservesZeroMode):
(std::testSplitPreservesZeroModeFromSource):
(addLargeFreeHeapTests):
Canonical link: https://commits.webkit.org/317151@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications