summaryrefslogtreecommitdiff
path: root/src/gc/env/gcenv.base.h
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2016-07-23 07:23:21 -0700
committerGitHub <noreply@github.com>2016-07-23 07:23:21 -0700
commit087e750df2a13801d0f144cdcfa6c1c3e16067c2 (patch)
tree557b34c3e18b801e410f45d1a2c9c64924520baf /src/gc/env/gcenv.base.h
parentac01e272bbbf6ce03f69843326d7fdfc74df245a (diff)
downloadcoreclr-087e750df2a13801d0f144cdcfa6c1c3e16067c2.tar.gz
coreclr-087e750df2a13801d0f144cdcfa6c1c3e16067c2.tar.bz2
coreclr-087e750df2a13801d0f144cdcfa6c1c3e16067c2.zip
GC update from CoreRT (#6429)
https://github.com/dotnet/corert/tree/master/src/Native/gc 91d7a9c8e2b393314422b6106adedec683c0ae51
Diffstat (limited to 'src/gc/env/gcenv.base.h')
-rw-r--r--src/gc/env/gcenv.base.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/gc/env/gcenv.base.h b/src/gc/env/gcenv.base.h
index 83726f4eab..97f1661b0d 100644
--- a/src/gc/env/gcenv.base.h
+++ b/src/gc/env/gcenv.base.h
@@ -176,6 +176,12 @@ typedef DWORD (WINAPI *PTHREAD_START_ROUTINE)(void* lpThreadParameter);
#endif // _MSC_VER
+typedef struct _PROCESSOR_NUMBER {
+ uint16_t Group;
+ uint8_t Number;
+ uint8_t Reserved;
+} PROCESSOR_NUMBER, *PPROCESSOR_NUMBER;
+
#endif // _INC_WINDOWS
// -----------------------------------------------------------------------------------------------------------
@@ -600,4 +606,21 @@ public:
};
#endif // STRESS_HEAP
+class NumaNodeInfo
+{
+public:
+ static bool CanEnableGCNumaAware();
+ static void GetGroupForProcessor(uint16_t processor_number, uint16_t * group_number, uint16_t * group_processor_number);
+ static bool GetNumaProcessorNodeEx(PPROCESSOR_NUMBER proc_no, uint16_t * node_no);
+};
+
+class CPUGroupInfo
+{
+public:
+ static bool CanEnableGCCPUGroups();
+ static uint32_t GetNumActiveProcessors();
+ static void GetGroupForProcessor(uint16_t processor_number, uint16_t * group_number, uint16_t * group_processor_number);
+};
+
+
#endif // __GCENV_BASE_INCLUDED__