diff options
Diffstat (limited to 'src/vm/gchost.cpp')
-rw-r--r-- | src/vm/gchost.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/vm/gchost.cpp b/src/vm/gchost.cpp index 4f7d52f805..b51f2459fd 100644 --- a/src/vm/gchost.cpp +++ b/src/vm/gchost.cpp @@ -22,7 +22,7 @@ #include "corhost.h" #include "excep.h" #include "field.h" -#include "gc.h" +#include "gcheaputilities.h" #if !defined(FEATURE_CORECLR) inline size_t SizeInKBytes(size_t cbSize) @@ -48,7 +48,7 @@ HRESULT CorGCHost::_SetGCSegmentSize(SIZE_T SegmentSize) HRESULT hr = S_OK; // Sanity check the value, it must be a power of two and big enough. - if (!GCHeap::IsValidSegmentSize(SegmentSize)) + if (!GCHeapUtilities::GetGCHeap()->IsValidSegmentSize(SegmentSize)) { hr = E_INVALIDARG; } @@ -74,7 +74,7 @@ HRESULT CorGCHost::_SetGCMaxGen0Size(SIZE_T MaxGen0Size) HRESULT hr = S_OK; // Sanity check the value is at least large enough. - if (!GCHeap::IsValidGen0MaxSize(MaxGen0Size)) + if (!GCHeapUtilities::GetGCHeap()->IsValidGen0MaxSize(MaxGen0Size)) { hr = E_INVALIDARG; } @@ -151,7 +151,7 @@ HRESULT CorGCHost::Collect( HRESULT hr = E_FAIL; - if (Generation > (int) GCHeap::GetGCHeap()->GetMaxGeneration()) + if (Generation > (int) GCHeapUtilities::GetGCHeap()->GetMaxGeneration()) hr = E_INVALIDARG; else { @@ -170,7 +170,7 @@ HRESULT CorGCHost::Collect( EX_TRY { - hr = GCHeap::GetGCHeap()->GarbageCollect(Generation); + hr = GCHeapUtilities::GetGCHeap()->GarbageCollect(Generation); } EX_CATCH { @@ -268,7 +268,7 @@ HRESULT CorGCHost::SetVirtualMemLimit( } CONTRACTL_END; - GCHeap::GetGCHeap()->SetReservedVMLimit (sztMaxVirtualMemMB); + GCHeapUtilities::GetGCHeap()->SetReservedVMLimit (sztMaxVirtualMemMB); return (S_OK); } #endif // !defined(FEATURE_CORECLR) |