Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d18773ec666ea2bd59f8411c3bcd8d832998dad2
https://github.com/WebKit/WebKit/commit/d18773ec666ea2bd59f8411c3bcd8d832998dad2
Author: Dan Hecht <[email protected]>
Date: 2026-07-28 (Tue, 28 Jul 2026)
Changed paths:
M Source/bmalloc/libpas/src/test/AllocationZeroingTests.cpp
Log Message:
-----------
[libpas] Add evicted, read-faulted backing coverage to AllocationZeroingTests
https://bugs.webkit.org/show_bug.cgi?id=320470
rdar://183437138
Reviewed by Keith Miller.
The tests here dirty a region and free it, so the zeroed path only ever runs
over pages that are resident-dirty or decommitted, never over pages brought
back by a read fault.
Add a case that puts a large region through a randomized number of
evict/read-fault rounds before freeing it, then reallocates the same size and
verifies the reused region reads zero, across all three first-fault orders.
Eviction uses madvise(MADV_PAGEOUT) where available; where it is not, the
rounds degenerate into plain re-reads, which the test reports.
* Source/bmalloc/libpas/src/test/AllocationZeroingTests.cpp:
(addAllocationZeroingTests):
Canonical link: https://commits.webkit.org/318093@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications