summaryrefslogtreecommitdiff
path: root/src/vm/commemoryfailpoint.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/commemoryfailpoint.h')
-rw-r--r--src/vm/commemoryfailpoint.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/vm/commemoryfailpoint.h b/src/vm/commemoryfailpoint.h
new file mode 100644
index 0000000000..902e5e36ed
--- /dev/null
+++ b/src/vm/commemoryfailpoint.h
@@ -0,0 +1,28 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+/*============================================================
+**
+** Class: COMMemoryFailPoint
+**
+**
+** Purpose: Native methods for System.Runtime.MemoryFailPoint.
+** These are to implement memory gates to limit allocations
+** when progress will likely result in an OOM.
+**
+**
+===========================================================*/
+
+#ifndef _COMMEMORYFAILPOINT_H
+#define _COMMEMORYFAILPOINT_H
+
+#include "fcall.h"
+
+class COMMemoryFailPoint
+{
+public:
+ static FCDECL2(void, GetMemorySettings, UINT64* pMaxGCSegmentSize, UINT64* pTopOfMemory);
+};
+
+#endif // _COMMEMORYFAILPOINT_H