Bug 306192
| Summary: | [bmalloc] handle multiple regions in vmZeroAndPurge on windows | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Dylan Conway <dylan.conway567> |
| Component: | bmalloc | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
EWS
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
<rdar://problem/168877040>