From b59c6f3017bccac19eededde69e9ad1eff612e2a Mon Sep 17 00:00:00 2001 From: Maoni Stephens Date: Thu, 3 Mar 2016 23:33:35 -0800 Subject: [PATCH] 197654 [x86] [scanRuntime] Fix contracts in gcenv.os.cpp [tfs-changeset: 1581565] --- src/vm/gcenv.os.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vm/gcenv.os.cpp b/src/vm/gcenv.os.cpp index 9555072..3b2d44f 100644 --- a/src/vm/gcenv.os.cpp +++ b/src/vm/gcenv.os.cpp @@ -374,6 +374,8 @@ HINSTANCE LoadDllForAPI(WCHAR* dllTraditional, WCHAR* dllApiSet) // at getting that limit, it returns 0. uint64_t GCToOSInterface::GetRestrictedPhysicalMemoryLimit() { + LIMITED_METHOD_CONTRACT; + #ifdef FEATURE_PAL return 0; #else @@ -499,6 +501,8 @@ exit: // 0 if it has failed, the real value if it has succeeded size_t GCToOSInterface::GetCurrentPhysicalMemory() { + LIMITED_METHOD_CONTRACT; + #ifndef FEATURE_PAL PROCESS_MEMORY_COUNTERS pmc; if (GCGetProcessMemoryInfo(GetCurrentProcess(), &pmc, sizeof(pmc))) -- 2.7.4