diff options
author | Andrew Au <andrewau@microsoft.com> | 2021-04-22 09:16:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-22 09:16:49 +0300 |
commit | a13a2eb058c32c0954e186b5d3532fde44ffbacf (patch) | |
tree | e796558d69ecf6abfc00845fba65fea367faf228 /src/coreclr/gc | |
parent | c5288594aa563f9412d01ed7ba2b31fc9244e368 (diff) |
Fix a build error when USE_REGIONS is turned on (#51660)
Diffstat (limited to 'src/coreclr/gc')
-rw-r--r-- | src/coreclr/gc/gc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coreclr/gc/gc.cpp b/src/coreclr/gc/gc.cpp index 0bed0bdb751..c7f2b177f52 100644 --- a/src/coreclr/gc/gc.cpp +++ b/src/coreclr/gc/gc.cpp @@ -40460,7 +40460,7 @@ HRESULT GCHeap::Initialize() size_t gc_region_size = (size_t)GCConfig::GetGCRegionsSize(); if (!power_of_two_p(gc_region_size) || ((gc_region_size * nhp * 19) > gc_heap::regions_range)) { - return E_INVALIDARG; + return E_OUTOFMEMORY; } gc_heap::min_segment_size_shr = index_of_highest_set_bit (gc_region_size); #else |