Remove more always defined FEATURE_CORESYSTEM
authordanmosemsft <danmose@microsoft.com>
Sat, 11 Feb 2017 05:43:40 +0000 (21:43 -0800)
committerdanmosemsft <danmose@microsoft.com>
Sat, 11 Feb 2017 05:53:53 +0000 (21:53 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/52009b8919ba55690f21cdc8f04e012a53eb8ef4

src/coreclr/src/ToolBox/SOS/Strike/sos.def
src/coreclr/src/debug/ee/rcthread.cpp
src/coreclr/src/inc/winwrap.h
src/coreclr/src/vm/assembly.hpp
src/coreclr/src/vm/dllimport.cpp
src/coreclr/src/vm/methodtable.inl
src/coreclr/src/vm/securitymeta.inl
src/coreclr/src/vm/win32threadpool.cpp

index c8d08e7..e18216c 100644 (file)
@@ -209,7 +209,6 @@ EXPORTS
 #endif // !FEATURE_PAL
 
 
-#ifdef FEATURE_CORESYSTEM
 // Only documented for Apollo internal usage
     Watch
     watch=Watch
@@ -228,4 +227,4 @@ EXPORTS
     getCodeTypeFlags=GetCodeTypeFlags
     TraceToCode
     tracetocode=TraceToCode
-#endif
+    
index 2244766..c5e6ff7 100644 (file)
@@ -797,7 +797,7 @@ static LONG _debugFilter(LPEXCEPTION_POINTERS ep, PVOID pv)
     DWORD tid = GetCurrentThreadId();
 
     DebuggerIPCEventType type = (DebuggerIPCEventType) (event->type & DB_IPCE_TYPE_MASK);
-#endif // _DEBUG || !FEATURE_CORESYSTEM
+#endif // _DEBUG 
 
     // We should never AV here. In a debug build, throw up an assert w/ lots of useful (private) info.
 #ifdef _DEBUG
index 6c4dfe8..50e430f 100644 (file)
@@ -1014,6 +1014,6 @@ inline int LateboundMessageBoxA(HWND hWnd,
 #define MessageBoxW LateboundMessageBoxW
 #define MessageBoxA LateboundMessageBoxA
 
-#endif // FEATURE_CORESYSTEM
+#endif // !CROSSGEN_COMPILE
 
 #endif  // __WIN_WRAP_H__
index 6974fdd..e411d2e 100644 (file)
@@ -291,9 +291,7 @@ public:
 
     BOOL GetModuleZapFile(LPCWSTR name, SString &path);
 
-#if defined(FEATURE_CORESYSTEM)
     BOOL AllowUntrustedCaller();
-#endif // defined(FEATURE_APTCA) || defined(FEATURE_CORESYSTEM)
     
 #ifdef LOGGING
     LPCWSTR GetDebugName()
index 98e58c6..38266ad 100644 (file)
@@ -6416,7 +6416,7 @@ HINSTANCE NDirect::LoadLibraryModule(NDirectMethodDesc * pMD, LoadLibErrorTracke
             hmod = LocalLoadLibraryHelper(wszLibName, LOAD_LIBRARY_SEARCH_SYSTEM32, pErrorTracker);
         }
     }
-#endif // FEATURE_CORESYSTEM && !FEATURE_PAL
+#endif // !PLATFORM_UNIX
 
     if (hmod == NULL)
     {
index cf79ffe..3399a8b 100644 (file)
@@ -380,11 +380,7 @@ inline BOOL MethodTable::SupportsAutoNGen()
 inline BOOL MethodTable::RunCCTorAsIfNGenImageExists()
 {
     LIMITED_METHOD_CONTRACT;
-#ifdef FEATURE_CORESYSTEM
     return TRUE; // On our coresystem builds we will always be using triton in the customer scenario.
-#else
-    return FALSE;
-#endif
 }
 
 //==========================================================================================
index 11da444..a31ef3f 100644 (file)
@@ -1076,15 +1076,12 @@ inline BOOL ModuleSecurityDescriptor::IsMixedTransparency()
     return !IsAllCritical() && !IsAllTransparent();
 }
 
-
-#if defined(FEATURE_CORESYSTEM)
 inline BOOL ModuleSecurityDescriptor::IsAPTCA()
 {
     WRAPPER_NO_CONTRACT;
     VerifyDataComputed();
     return !!(m_flags & ModuleSecurityDescriptorFlags_IsAPTCA);
 }
-#endif // defined(FEATURE_APTCA) || defined(FEATURE_CORESYSTEM)
 
 // Get the set of security rules that the assembly is using
 inline SecurityRuleSet ModuleSecurityDescriptor::GetSecurityRuleSet()
index 90be10a..760688f 100644 (file)
@@ -4550,7 +4550,7 @@ DWORD __stdcall ThreadpoolMgr::GateThreadStart(LPVOID lpArgs)
      * 2. GCCpuGroups=1, CLR creates GC threads for all processors in all CPU groups
      *    thus, the threadpool thread would use a whole CPU group (if Thread_UseAllCpuGroups is not set).
      *    ==> use g_SystemInfo.dwNumberOfProcessors.
-     * 3. !defined(FEATURE_PAL) but defined(FEATURE_CORESYSTEM), GetCurrentProcessCpuCount()
+     * 3. !defined(FEATURE_PAL), GetCurrentProcessCpuCount()
      *    returns g_SystemInfo.dwNumberOfProcessors ==> use g_SystemInfo.dwNumberOfProcessors;
      * Other cases:
      * 1. Normal case: the mask is all or a subset of all processors in a CPU group;