RESOLVED FIXED 233674
[Win] OSAllocator::reserveUncommittedAligned should use aligned allocation
https://bugs.webkit.org/show_bug.cgi?id=233674
Summary [Win] OSAllocator::reserveUncommittedAligned should use aligned allocation
Fujii Hironori
Reported 2021-11-30 18:14:30 PST
[Win] OSAllocator::reserveUncommittedAligned should use aligned allocation It has a FIXME comment (Added by Bug 233379): > // FIXME: Is there a way to do this where we can either release the excess reservation or not reserve it at all? > void* result = reserveUncommitted(2 * bytes, usage, writable, executable);
Attachments
Patch (2.45 KB, patch)
2021-11-30 20:39 PST, Fujii Hironori
no flags
Patch for landing (2.58 KB, patch)
2021-12-01 12:28 PST, Fujii Hironori
no flags
Fujii Hironori
Comment 1 2021-11-30 18:16:46 PST
The document of VirtualAlloc2 has a sample code. "Scenario 3. Allocate memory in a specific virtual address range (below 4GB, in this example) and with specific alignment." https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualalloc2
Fujii Hironori
Comment 2 2021-11-30 20:39:22 PST
Keith Miller
Comment 3 2021-12-01 05:55:38 PST
Comment on attachment 445508 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=445508&action=review > Source/WTF/wtf/win/OSAllocatorWin.cpp:69 > // FIXME: Is there a way to do this where we can either release the excess reservation or not reserve it at all? Nit: I'd remove this FIXME at this point.
Fujii Hironori
Comment 4 2021-12-01 12:28:05 PST
Created attachment 445603 [details] Patch for landing Thank you for the review.
Fujii Hironori
Comment 5 2021-12-01 12:30:05 PST
Radar WebKit Bug Importer
Comment 6 2021-12-01 12:31:25 PST
Note You need to log in before you can comment on or make changes to this bug.