g_lowest_address = MAX_PTR;
g_highest_address = 0;
- // Try to get the data all at once
- ptrdiff_t allatonce_delta;
-
if (((size_t)MAX_PTR - large_size) < normal_size)
{
// we are already overflowing with just one heap.
return VirtualAlloc(lpAddress, dwSize, flAllocationType, flProtect);
}
+void * ClrVirtualAllocAligned(
+ void * lpAddress,
+ size_t dwSize,
+ uint32_t flAllocationType,
+ uint32_t flProtect,
+ size_t dwAlignment)
+{
+ return VirtualAlloc(lpAddress, dwSize, flAllocationType, flProtect);
+}
+
bool ClrVirtualFree(
void * lpAddress,
size_t dwSize,
uint32_t flAllocationType,
uint32_t flProtect);
+void * ClrVirtualAllocAligned(
+ void * lpAddress,
+ size_t dwSize,
+ uint32_t flAllocationType,
+ uint32_t flProtect,
+ size_t dwAlignment);
+
bool ClrVirtualFree(
void * lpAddress,
size_t dwSize,