We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd6ed47 commit dc75cd8Copy full SHA for dc75cd8
src/coreclr/utilcode/util.cpp
@@ -369,7 +369,12 @@ BYTE * ClrVirtualAllocWithinRange(const BYTE *pMinAddr,
369
{
370
NOTHROW;
371
PRECONDITION(dwSize != 0);
372
- PRECONDITION(flAllocationType == MEM_RESERVE); // ORed with MEM_RESERVE_EXECUTABLE on Unix
+
373
+#ifdef HOST_UNIX
374
+ PRECONDITION(flAllocationType == (MEM_RESERVE | MEM_RESERVE_EXECUTABLE));
375
+#else
376
+ PRECONDITION(flAllocationType == MEM_RESERVE);
377
+#endif
378
}
379
CONTRACTL_END;
380
0 commit comments