src/gc/windows/gcenv.windows.cpp
bool GCToOSInterface::VirtualCommit(void* address, size_t size, uint16_t node)
{
    if (node == NUMA_NODE_UNDEFINED)
    {
        return ::VirtualAlloc(address, size, MEM_COMMIT, PAGE_READWRITE) != nullptr;
    }
    else
    {
        assert(g_fEnableGCNumaAware);
        return ::VirtualAllocExNuma(::GetCurrentProcess(), address, size, MEM_COMMIT, PAGE_READWRITE, node) != nullptr;
    }
}
// Commit virtual memory range. It must be part of a range reserved using VirtualReserve.
// Parameters:
//  address - starting virtual address
//  size    - size of the virtual memory range
// Return:
//  true if it has succeeded, false if it has failed
Commit virtual memory range. It must be part of a range reserved using VirtualReserve.
Parameters:
address - starting virtual address
size    - size of the virtual memory range
Return:
true if it has succeeded, false if it has failed
Commit virtual memory range . It must be part of a range reserved using VirtualReserve . Parameters : address - starting virtual address size - size of the virtual memory range Return : true if it has succeeded false if it has failed
bool GCToOSInterface::VirtualCommit(void* address, size_t size, uint16_t node)
{
    if (node == NUMA_NODE_UNDEFINED)
    {
        return ::VirtualAlloc(address, size, MEM_COMMIT, PAGE_READWRITE) != nullptr;
    }
    else
    {
        assert(g_fEnableGCNumaAware);
        return ::VirtualAllocExNuma(::GetCurrentProcess(), address, size, MEM_COMMIT, PAGE_READWRITE, node) != nullptr;
    }
}
bool GCToOSInterface :: VirtualCommit ( void * address , size_t size , uint16_t node ) { if ( node == NUMA_NODE_UNDEFINED ) { return :: VirtualAlloc ( address , size , MEM_COMMIT , PAGE_READWRITE ) != nullptr ; } else { assert ( g_fEnableGCNumaAware ) ; return :: VirtualAllocExNuma ( :: GetCurrentProcess ( ) , address , size , MEM_COMMIT , PAGE_READWRITE , node ) != nullptr ; } }
Commit virtual memory range.
Commit virtual memory range .