From 27a25bd37fa1fe6201c27709b1884e1b328f8beb Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Wed, 11 Oct 2017 13:04:43 -0700 Subject: Delete !FEATURE_IMPLICIT_TLS (#14398) Linux and Windows arm64 are using the regular C/C++ thread local statics. This change unifies the remaining Windows architectures to be on the same plan. --- src/vm/ceemain.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/vm/ceemain.cpp') diff --git a/src/vm/ceemain.cpp b/src/vm/ceemain.cpp index 44f5d8eb1d..9dbe2b9dff 100644 --- a/src/vm/ceemain.cpp +++ b/src/vm/ceemain.cpp @@ -2714,17 +2714,7 @@ BOOL STDMETHODCALLTYPE EEDllMain( // TRUE on success, FALSE on error. , TRUE #endif ); -#ifdef FEATURE_IMPLICIT_TLS Thread* thread = GetThread(); -#else - // Don't use GetThread because perhaps we didn't initialize yet, or we - // have already shutdown the EE. Note that there is a race here. We - // might ask for TLS from a slot we just released. We are assuming that - // nobody re-allocates that same slot while we are doing this. It just - // isn't worth locking for such an obscure case. - DWORD tlsVal = GetThreadTLSIndex(); - Thread *thread = (tlsVal != (DWORD)-1)?(Thread *) UnsafeTlsGetValue(tlsVal):NULL; -#endif if (thread) { #ifdef FEATURE_COMINTEROP -- cgit v1.2.3