diff options
author | Jan Kotas <jkotas@microsoft.com> | 2016-07-27 14:16:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-27 14:16:02 -0700 |
commit | 2d944f96aaf0a61a84cb7e6d19992657ef77e9ae (patch) | |
tree | e6d360187ddffd8ecfc819649de37c54d33887a8 /src/vm/gcenv.os.cpp | |
parent | 50d9704c7918ef6adbfe9b5f10619f0dddd58cc6 (diff) | |
download | coreclr-2d944f96aaf0a61a84cb7e6d19992657ef77e9ae.tar.gz coreclr-2d944f96aaf0a61a84cb7e6d19992657ef77e9ae.tar.bz2 coreclr-2d944f96aaf0a61a84cb7e6d19992657ef77e9ae.zip |
GC update from CoreRT (#6487)
https://github.com/dotnet/corert/tree/master/src/Native/gc 35d3eefeb4d14193433a103411526fa869321a82
Diffstat (limited to 'src/vm/gcenv.os.cpp')
-rw-r--r-- | src/vm/gcenv.os.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/vm/gcenv.os.cpp b/src/vm/gcenv.os.cpp index 1972b23ea7..73b21a7a0b 100644 --- a/src/vm/gcenv.os.cpp +++ b/src/vm/gcenv.os.cpp @@ -534,9 +534,14 @@ uint64_t GCToOSInterface::GetPhysicalMemoryLimit() return memStatus.ullTotalPhys; } -// Get global memory status +// Get memory status // Parameters: -// ms - pointer to the structure that will be filled in with the memory status +// memory_load - A number between 0 and 100 that specifies the approximate percentage of physical memory +// that is in use (0 indicates no memory use and 100 indicates full memory use). +// available_physical - The amount of physical memory currently available, in bytes. +// available_page_file - The maximum amount of memory the current process can commit, in bytes. +// Remarks: +// Any parameter can be null. void GCToOSInterface::GetMemoryStatus(uint32_t* memory_load, uint64_t* available_physical, uint64_t* available_page_file) { LIMITED_METHOD_CONTRACT; |