summaryrefslogtreecommitdiff
path: root/src/inc/predeftlsslot.h
diff options
context:
space:
mode:
authorMike McLaughlin <mikem@microsoft.com>2019-05-22 16:59:02 -0700
committerMike McLaughlin <mikem@microsoft.com>2019-05-22 16:59:02 -0700
commit3195e80e0fa4171692a037b1e1b03963b3579fd9 (patch)
tree2d5efb9bfdc063006e507c800a4f020a057f1355 /src/inc/predeftlsslot.h
parent96e8c58d77762497a8333e675db2fd396887decb (diff)
downloadcoreclr-3195e80e0fa4171692a037b1e1b03963b3579fd9.tar.gz
coreclr-3195e80e0fa4171692a037b1e1b03963b3579fd9.tar.bz2
coreclr-3195e80e0fa4171692a037b1e1b03963b3579fd9.zip
Add warning banner and sos threads -special fix
Diffstat (limited to 'src/inc/predeftlsslot.h')
-rw-r--r--src/inc/predeftlsslot.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/inc/predeftlsslot.h b/src/inc/predeftlsslot.h
index d8b53fd24d..919407f47a 100644
--- a/src/inc/predeftlsslot.h
+++ b/src/inc/predeftlsslot.h
@@ -7,6 +7,11 @@
#ifndef __PREDEFTLSSLOT_H__
#define __PREDEFTLSSLOT_H__
+// ******************************************************************************
+// WARNING!!!: These enums are used by SOS in the diagnostics repo. Values should
+// added or removed in a backwards and forwards compatible way.
+// See: https://github.com/dotnet/diagnostics/blob/master/src/inc/predeftlsslot.h
+// ******************************************************************************
// And here are the predefined slots for accessing TLS from various DLLs of the CLR.
// Note that we want to support combinations of Debug and Retail DLLs for testing
@@ -20,6 +25,7 @@ enum PredefinedTlsSlots
TlsIdx_JitLogEnv,
TlsIdx_IceCap,
TlsIdx_StressLog,
+ TlsIdx_CantStopCount, // Can't-stop counter for any thread
TlsIdx_Check,
TlsIdx_ForbidGCLoaderUseCount,
TlsIdx_ClrDebugState, // Pointer to ClrDebugState* structure
@@ -27,7 +33,6 @@ enum PredefinedTlsSlots
// Add more indices here.
TlsIdx_ThreadType, // bit flags to indicate special thread's type
- TlsIdx_CantStopCount, // Can't-stop counter for any thread
TlsIdx_OwnedCrstsChain, // slot to store the Crsts owned by this thread
TlsIdx_AppDomainAgilePendingTable,
TlsIdx_CantAllocCount, //Can't allocate memory on heap in this thread
@@ -77,5 +82,7 @@ enum TlsThreadTypeFlag // flag used for thread type in Tls data
ThreadType_GenericInstantiationCompare= 0x00020000, // Used to indicate that the thread is determining if a generic instantiation in an ngen image matches a lookup.
};
+static_assert(TlsIdx_ThreadType == 11, "SOS in diagnostics repo has a dependency on this value.");
+
#endif