Bug 306192

Summary: [bmalloc] handle multiple regions in vmZeroAndPurge on windows
Product: WebKit Reporter: Dylan Conway <dylan.conway567>
Component: bmallocAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ggaren, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Dylan Conway
Reported 2026-01-24 15:48:10 PST
Two bugs in vmZeroAndPurge on Windows: 1. If the input pointer+size spans more than one region DiscardVirtualMemory / VirtualFree(MEM_DECOMMIT) / VirtualAlloc(MEM_COMMIT) will fail. 2. DiscardVirtualMemory does not guarantee zeroing the memory so we need to use VirtualFree(MEM_DECOMMIT) / VirtualAlloc(MEM_COMMIT) instead
Attachments
EWS
Comment 1 2026-01-25 12:04:55 PST
Committed 306171@main (adb333973f88): <https://commits.webkit.org/306171@main> Reviewed commits have been landed. Closing PR #57187 and removing active labels.
Radar WebKit Bug Importer
Comment 2 2026-01-25 12:05:13 PST
Note You need to log in before you can comment on or make changes to this bug.