Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/coreclr/gc/unix/gcenv.unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ static size_t GetCurrentVirtualMemorySize()

// Return the size of the available user-mode portion of the virtual address space of this process.
// Return:
// non zero if it has succeeded, (size_t)-1 if not available
// non zero if it has succeeded, GetVirtualMemoryMaxAddress() if not available
size_t GCToOSInterface::GetVirtualMemoryLimit()
{
rlimit addressSpaceLimit;
Expand All @@ -1140,7 +1140,7 @@ size_t GCToOSInterface::GetVirtualMemoryLimit()
}

// No virtual memory limit
return (size_t)-1;
return GetVirtualMemoryMaxAddress();
}

// Return the maximum address of the of the virtual address space of this process.
Expand Down