summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaoni Stephens <maonis@microsoft.com>2016-03-03 23:33:35 -0800
committerMaoni Stephens <maonis@microsoft.com>2016-03-03 23:33:35 -0800
commitb59c6f3017bccac19eededde69e9ad1eff612e2a (patch)
treef4a1a821100f39b944a94e143bd2748ed53a0f85 /src
parent4707152ea16ca35af2c87f43db3536001f1d0e6b (diff)
downloadcoreclr-b59c6f3017bccac19eededde69e9ad1eff612e2a.tar.gz
coreclr-b59c6f3017bccac19eededde69e9ad1eff612e2a.tar.bz2
coreclr-b59c6f3017bccac19eededde69e9ad1eff612e2a.zip
197654 [x86] [scanRuntime] Fix contracts in gcenv.os.cpp
[tfs-changeset: 1581565]
Diffstat (limited to 'src')
-rw-r--r--src/vm/gcenv.os.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vm/gcenv.os.cpp b/src/vm/gcenv.os.cpp
index 95550728de..3b2d44f82a 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)))