[Webkit-unassigned] [Bug 238030] [Win][Regression] Internal error after StructureID reland
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Mar 17 16:48:14 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=238030
--- Comment #3 from Fujii Hironori <Hironori.Fujii at sony.com> ---
I confirmed the same error without VirtualAlloc2.
diff --git a/Source/WTF/wtf/win/OSAllocatorWin.cpp b/Source/WTF/wtf/win/OSAllocatorWin.cpp
index b7f4eddd288d..96133a38f5ae 100644
--- a/Source/WTF/wtf/win/OSAllocatorWin.cpp
+++ b/Source/WTF/wtf/win/OSAllocatorWin.cpp
@@ -60,6 +60,7 @@ void* OSAllocator::tryReserveUncommittedAligned(size_t bytes, size_t alignment,
{
ASSERT(hasOneBitSet(alignment) && alignment >= pageSize());
+#if 0
if (VirtualAlloc2Ptr()) {
MEM_ADDRESS_REQUIREMENTS addressReqs = { };
MEM_EXTENDED_PARAMETER param = { };
@@ -69,6 +70,7 @@ void* OSAllocator::tryReserveUncommittedAligned(size_t bytes, size_t alignment,
void* result = VirtualAlloc2Ptr()(nullptr, nullptr, bytes, MEM_RESERVE, protection(writable, executable), ¶m, 1);
return result;
}
+#endif
void* result = tryReserveUncommitted(bytes + alignment);
// There's no way to release the reserved memory on Windows, from what I can tell as the whole segment has to be released at once.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220317/08a5e230/attachment-0001.htm>
More information about the webkit-unassigned
mailing list