projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17005b5
)
197654 [x86] [scanRuntime] Fix contracts in gcenv.os.cpp
author
Maoni Stephens
<maonis@microsoft.com>
Fri, 4 Mar 2016 07:33:35 +0000
(23:33 -0800)
committer
Maoni Stephens
<maonis@microsoft.com>
Fri, 4 Mar 2016 07:33:35 +0000
(23:33 -0800)
[tfs-changeset: 1581565]
Commit migrated from https://github.com/dotnet/coreclr/commit/
b59c6f3017bccac19eededde69e9ad1eff612e2a
src/coreclr/src/vm/gcenv.os.cpp
patch
|
blob
|
history
diff --git
a/src/coreclr/src/vm/gcenv.os.cpp
b/src/coreclr/src/vm/gcenv.os.cpp
index
9555072
..
3b2d44f
100644
(file)
--- a/
src/coreclr/src/vm/gcenv.os.cpp
+++ b/
src/coreclr/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)))