Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 68abd570b559737b6ecedc0a69747fe4215e9b06
https://github.com/WebKit/WebKit/commit/68abd570b559737b6ecedc0a69747fe4215e9b06
Author: Dan Hecht <[email protected]>
Date: 2026-07-16 (Thu, 16 Jul 2026)
Changed paths:
M Source/bmalloc/libpas/src/test/AllocationZeroingTests.cpp
Log Message:
-----------
[libpas] Add small-object page-batching zeroing to AllocationZeroingTests
https://bugs.webkit.org/show_bug.cgi?id=319614
rdar://182442861
Reviewed by Marcus Plutowski.
Small objects are batched many-per-page: a segregated page holds at least
PAS_MIN_OBJECTS_PER_PAGE objects, so one page's backing serves many
allocations, and those objects are zeroed per object rather than per page.
The size-regime reuse tests mostly keep one object live at a time and so
do not exercise many co-resident objects on a shared page.
Add a test that fills several pages with small zeroed objects and checks
each is independently zero, then frees them all and refills so the freed
objects are recycled, checking each reallocated object is zero. It runs
over both heap variants and two sizes bracketing the per-page object
density.
* Source/bmalloc/libpas/src/test/AllocationZeroingTests.cpp:
(addAllocationZeroingTests):
Canonical link: https://commits.webkit.org/317347@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications