summaryrefslogtreecommitdiff
path: root/src/vm/comutilnative.h
diff options
context:
space:
mode:
authorAndy Hanson <anhans@microsoft.com>2019-07-08 16:12:06 -0700
committerJan Kotas <jkotas@microsoft.com>2019-07-08 16:12:06 -0700
commit11137fbe46f524dfd6c2f7bb2a77035aa225524c (patch)
tree116160fa9d0ed8c8cb2fa1cb6ac407e476ab96cf /src/vm/comutilnative.h
parent8749c016e520bcaa23c56a862fe5f57eba1b879b (diff)
downloadcoreclr-11137fbe46f524dfd6c2f7bb2a77035aa225524c.tar.gz
coreclr-11137fbe46f524dfd6c2f7bb2a77035aa225524c.tar.bz2
coreclr-11137fbe46f524dfd6c2f7bb2a77035aa225524c.zip
Return HardLimitBytes from GCMemoryInfo.TotalAvailableMemoryBytes (#25437)
* Add property HardLimitBytes to GCMemoryInfo This adds a new property HardLimitBytes. Unlike TotalAvailableMemoryBytes, this will reflect an explicitly set COMPLUS_GCHeapHardLimit. It will also reflect the fraction of a container's size that we use, where TotalAvailableMemoryBytes is the total container size. Normally, though, it is equal to TotalAvailableMemoryBytes. Fix #38821 * Remove HardLimitBytes; have TotalAvailableMemoryBytes take on its behavior * Fix typos * Separate total_physical_mem and heap_hard_limit so we can compute highMemoryLoadThresholdBytes and memoryLoadBytes * Do more work in gc.cpp instead of Gc.cs * Consistently end names in "Bytes"
Diffstat (limited to 'src/vm/comutilnative.h')
-rw-r--r--src/vm/comutilnative.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/comutilnative.h b/src/vm/comutilnative.h
index 6afbc5a45e..5267d6ef73 100644
--- a/src/vm/comutilnative.h
+++ b/src/vm/comutilnative.h
@@ -110,7 +110,7 @@ public:
static FORCEINLINE UINT64 InterlockedAdd(UINT64 *pAugend, UINT64 addend);
static FORCEINLINE UINT64 InterlockedSub(UINT64 *pMinuend, UINT64 subtrahend);
- static FCDECL5(void, GetMemoryInfo, UINT32* highMemLoadThreshold, UINT64* totalPhysicalMem, UINT32* lastRecordedMemLoad, size_t* lastRecordedHeapSize, size_t* lastRecordedFragmentation);
+ static FCDECL6(void, GetMemoryInfo, UINT64* highMemLoadThresholdBytes, UINT64* totalAvailableMemoryBytes, UINT64* lastRecordedMemLoadBytes, UINT32* lastRecordedMemLoadPct, size_t* lastRecordedHeapSizBytes, size_t* lastRecordedFragmentationBytes);
static FCDECL0(int, GetGcLatencyMode);
static FCDECL1(int, SetGcLatencyMode, int newLatencyMode);
static FCDECL0(int, GetLOHCompactionMode);