Skip to content

Commit 1ba9759

Browse files
committed
Cleanup ifdefs
- Delete unused defines - Fix logic around funclet related ifdefs in a few places
1 parent 82dac28 commit 1ba9759

18 files changed

+32
-81
lines changed

src/coreclr/System.Private.CoreLib/System.Private.CoreLib.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,12 @@
206206
<Compile Include="$(BclSourcesRoot)\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs" />
207207
<Compile Include="$(BclSourcesRoot)\System\Runtime\ControlledExecution.CoreCLR.cs" />
208208
<Compile Include="$(BclSourcesRoot)\System\Runtime\DependentHandle.cs" />
209-
<Compile Include="$(MSBuildThisFileDirectory)..\nativeaot\Common\src\System\Runtime\RhFailFastReason.cs" Condition="('$(Platform)' != 'x86' or '$(TargetsWindows)' != 'true')" />
210-
<Compile Include="$(MSBuildThisFileDirectory)..\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs" Condition="('$(Platform)' != 'x86' or '$(TargetsWindows)' != 'true')" />
211-
<Compile Include="$(MSBuildThisFileDirectory)..\nativeaot\Runtime.Base\src\System\Runtime\ExceptionIDs.cs" Condition="('$(Platform)' != 'x86' or '$(TargetsWindows)' != 'true')" />
212-
<Compile Include="$(MSBuildThisFileDirectory)..\nativeaot\Runtime.Base\src\System\Runtime\StackFrameIterator.cs" Condition="('$(Platform)' != 'x86' or '$(TargetsWindows)' != 'true')" />
213-
<Compile Include="$(BclSourcesRoot)\System\Runtime\ExceptionServices\AsmOffsets.cs" Condition="('$(Platform)' != 'x86' or '$(TargetsWindows)' != 'true')" />
214-
<Compile Include="$(BclSourcesRoot)\System\Runtime\ExceptionServices\InternalCalls.cs" Condition="('$(Platform)' != 'x86' or '$(TargetsWindows)' != 'true')" />
209+
<Compile Include="$(MSBuildThisFileDirectory)..\nativeaot\Common\src\System\Runtime\RhFailFastReason.cs" />
210+
<Compile Include="$(MSBuildThisFileDirectory)..\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs" />
211+
<Compile Include="$(MSBuildThisFileDirectory)..\nativeaot\Runtime.Base\src\System\Runtime\ExceptionIDs.cs" />
212+
<Compile Include="$(MSBuildThisFileDirectory)..\nativeaot\Runtime.Base\src\System\Runtime\StackFrameIterator.cs" />
213+
<Compile Include="$(BclSourcesRoot)\System\Runtime\ExceptionServices\AsmOffsets.cs" />
214+
<Compile Include="$(BclSourcesRoot)\System\Runtime\ExceptionServices\InternalCalls.cs" />
215215
<Compile Include="$(BclSourcesRoot)\System\Runtime\GCSettings.CoreCLR.cs" />
216216
<Compile Include="$(BclSourcesRoot)\System\Runtime\JitInfo.CoreCLR.cs" />
217217
<Compile Include="$(BclSourcesRoot)\System\Runtime\InteropServices\ComTypes\IEnumerable.cs" />

src/coreclr/clr.featuredefines.props

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,36 @@
11
<Project>
22
<PropertyGroup>
33
<FeatureCoreCLR>true</FeatureCoreCLR>
4-
<FeatureCollectibleALC>true</FeatureCollectibleALC>
54
<FeatureEventTrace>true</FeatureEventTrace>
6-
<FeatureICastable>true</FeatureICastable>
75
<FeaturePerfTracing>true</FeaturePerfTracing>
86
<FeatureTypeEquivalence>true</FeatureTypeEquivalence>
9-
<FeatureBasicFreeze>true</FeatureBasicFreeze>
107
<ProfilingSupportedBuild>true</ProfilingSupportedBuild>
118
</PropertyGroup>
129

1310
<PropertyGroup Condition="'$(TargetsUnix)' == 'true'">
1411
<FeatureXplatEventSource Condition="'$(TargetOS)' == 'linux'">true</FeatureXplatEventSource>
15-
16-
<FeatureArrayStubAsIL>true</FeatureArrayStubAsIL>
17-
<FeatureMulticastStubAsIL>true</FeatureMulticastStubAsIL>
18-
<FeaturePortableShuffleThunks Condition="'$(Platform)' != 'x86'">true</FeaturePortableShuffleThunks>
19-
<FeatureInstantiatingStubAsIL>true</FeatureInstantiatingStubAsIL>
20-
<FeatureStubsAsIL>true</FeatureStubsAsIL>
2112
<FeatureComWrappers>true</FeatureComWrappers>
2213
</PropertyGroup>
2314

2415
<PropertyGroup Condition="'$(TargetsWindows)' == 'true'">
25-
<FeatureArrayStubAsIL Condition="'$(Platform)' != 'x86'">true</FeatureArrayStubAsIL>
26-
<FeatureMulticastStubAsIL Condition="'$(Platform)' != 'x86'">true</FeatureMulticastStubAsIL>
27-
<FeatureStubsAsIL Condition="'$(Platform)' == 'arm64'">true</FeatureStubsAsIL>
2816
<FeatureComWrappers>true</FeatureComWrappers>
2917
<FeatureCominterop>true</FeatureCominterop>
3018
<FeatureCominteropApartmentSupport>true</FeatureCominteropApartmentSupport>
31-
<FeatureWin32Registry>true</FeatureWin32Registry>
32-
<FeatureProfAttach>true</FeatureProfAttach>
33-
<FeaturePortableShuffleThunks Condition="'$(Platform)' != 'x86'">true</FeaturePortableShuffleThunks>
34-
<FeatureInstantiatingStubAsIL Condition="'$(Platform)' != 'x86'">true</FeatureInstantiatingStubAsIL>
3519
</PropertyGroup>
3620

3721
<PropertyGroup Condition="'$(TargetsOSX)' == 'true' OR '$(TargetsMacCatalyst)' == 'true' OR '$(TargetsiOS)' == 'true' OR '$(TargetstvOS)' == 'true'">
3822
<FeatureObjCMarshal>true</FeatureObjCMarshal>
3923
</PropertyGroup>
4024

41-
<PropertyGroup Condition="!('$(TargetsWindows)' == 'true' AND '$(Platform)' == 'x86')">
42-
<FeatureEHFunclets>true</FeatureEHFunclets>
43-
</PropertyGroup>
44-
4525
<PropertyGroup>
46-
<DefineConstants Condition="'$(FeatureArrayStubAsIL)' == 'true'">$(DefineConstants);FEATURE_ARRAYSTUB_AS_IL</DefineConstants>
47-
<DefineConstants Condition="'$(FeatureMulticastStubAsIL)' == 'true'">$(DefineConstants);FEATURE_MULTICASTSTUB_AS_IL</DefineConstants>
48-
<DefineConstants Condition="'$(FeatureInstantiatingStubAsIL)' == 'true'">$(DefineConstants);FEATURE_INSTANTIATINGSTUB_AS_IL</DefineConstants>
49-
<DefineConstants Condition="'$(FeatureStubsAsIL)' == 'true'">$(DefineConstants);FEATURE_STUBS_AS_IL</DefineConstants>
50-
<DefineConstants Condition="'$(FeatureCollectibleALC)' == 'true'">$(DefineConstants);FEATURE_COLLECTIBLE_ALC</DefineConstants>
5126
<DefineConstants Condition="'$(FeatureComWrappers)' == 'true'">$(DefineConstants);FEATURE_COMWRAPPERS</DefineConstants>
5227
<DefineConstants Condition="'$(FeatureCominterop)' == 'true'">$(DefineConstants);FEATURE_COMINTEROP</DefineConstants>
5328
<DefineConstants Condition="'$(FeatureCominteropApartmentSupport)' == 'true'">$(DefineConstants);FEATURE_COMINTEROP_APARTMENT_SUPPORT</DefineConstants>
5429
<DefineConstants Condition="'$(FeatureObjCMarshal)' == 'true'">$(DefineConstants);FEATURE_OBJCMARSHAL</DefineConstants>
5530
<DefineConstants Condition="'$(FeaturePerfTracing)' == 'true'">$(DefineConstants);FEATURE_PERFTRACING</DefineConstants>
5631
<DefineConstants Condition="'$(FeatureXplatEventSource)' == 'true'">$(DefineConstants);FEATURE_EVENTSOURCE_XPLAT</DefineConstants>
57-
<DefineConstants Condition="'$(FeatureWin32Registry)' == 'true'">$(DefineConstants);FEATURE_WIN32_REGISTRY</DefineConstants>
5832
<DefineConstants Condition="'$(FeatureTypeEquivalence)' == 'true'">$(DefineConstants);FEATURE_TYPEEQUIVALENCE</DefineConstants>
59-
<DefineConstants Condition="'$(FeatureBasicFreeze)' == 'true'">$(DefineConstants);FEATURE_BASICFREEZE</DefineConstants>
60-
<DefineConstants Condition="'$(FeaturePortableShuffleThunks)' == 'true'">$(DefineConstants);FEATURE_PORTABLE_SHUFFLE_THUNKS</DefineConstants>
61-
<DefineConstants Condition="'$(FeatureICastable)' == 'true'">$(DefineConstants);FEATURE_ICASTABLE</DefineConstants>
62-
<DefineConstants Condition="'$(FeatureEHFunclets)' == 'true'">$(DefineConstants);FEATURE_EH_FUNCLETS</DefineConstants>
6333

6434
<DefineConstants Condition="'$(ProfilingSupportedBuild)' == 'true'">$(DefineConstants);PROFILING_SUPPORTED</DefineConstants>
65-
<DefineConstants Condition="'$(FeatureProfAttach)' == 'true'">$(DefineConstants);FEATURE_PROFAPI_ATTACH_DETACH</DefineConstants>
6635
</PropertyGroup>
6736
</Project>

src/coreclr/clrdefinitions.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,6 @@ if(CLR_CMAKE_TARGET_ARCH_AMD64 OR CLR_CMAKE_TARGET_ARCH_ARM64 OR CLR_CMAKE_TARGE
203203
add_definitions(-DFEATURE_MANUALLY_MANAGED_CARD_BUNDLES)
204204
endif(CLR_CMAKE_TARGET_ARCH_AMD64 OR CLR_CMAKE_TARGET_ARCH_ARM64 OR CLR_CMAKE_TARGET_ARCH_LOONGARCH64 OR CLR_CMAKE_TARGET_ARCH_RISCV64)
205205

206-
if(NOT CLR_CMAKE_TARGET_UNIX)
207-
add_definitions(-DFEATURE_WIN32_REGISTRY)
208-
endif(NOT CLR_CMAKE_TARGET_UNIX)
209206
add_definitions(-D_SECURE_SCL=0)
210207
add_definitions(-DUNICODE)
211208
add_definitions(-D_UNICODE)

src/coreclr/debug/ee/debugger.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3892,8 +3892,6 @@ HANDLE OpenWin32EventOrThrow(
38923892
// Returns true if the specified IL offset has a special meaning (eg. prolog, etc.)
38933893
bool DbgIsSpecialILOffset(DWORD offset);
38943894

3895-
#if !defined(TARGET_X86)
38963895
void FixupDispatcherContext(T_DISPATCHER_CONTEXT* pDispatcherContext, T_CONTEXT* pContext, PEXCEPTION_ROUTINE pUnwindPersonalityRoutine = NULL);
3897-
#endif
38983896

38993897
#endif /* DEBUGGER_H_ */

src/coreclr/inc/clrnt.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,7 @@ RtlpGetFunctionEndAddress (
223223
#define RUNTIME_FUNCTION__SetUnwindInfoAddress(prf, addr) do { (prf)->UnwindData = (addr); } while(0)
224224

225225
#ifdef HOST_X86
226-
EXTERN_C
227-
NTSYSAPI
228226
PEXCEPTION_ROUTINE
229-
NTAPI
230227
RtlVirtualUnwind (
231228
_In_ DWORD HandlerType,
232229
_In_ DWORD ImageBase,

src/coreclr/inc/daccess.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,6 @@ struct COR_ILMETHOD* DacGetIlMethod(TADDR methAddr);
806806
struct _UNWIND_INFO * DacGetUnwindInfo(TADDR taUnwindInfo);
807807

808808
// virtually unwind a CONTEXT out-of-process
809-
struct _KNONVOLATILE_CONTEXT_POINTERS;
810809
BOOL DacUnwindStackFrame(T_CONTEXT * pContext, T_KNONVOLATILE_CONTEXT_POINTERS* pContextPointers);
811810
#endif // FEATURE_EH_FUNCLETS
812811

@@ -2433,7 +2432,7 @@ typedef DPTR(IMAGE_TLS_DIRECTORY) PTR_IMAGE_TLS_DIRECTORY;
24332432
#endif
24342433

24352434
#ifndef NATIVEAOT
2436-
#if defined(TARGET_X86) && defined(TARGET_UNIX)
2435+
#if defined(TARGET_X86) && defined(FEATURE_EH_FUNCLETS)
24372436
typedef DPTR(struct _UNWIND_INFO) PTR_UNWIND_INFO;
24382437
#endif
24392438

src/coreclr/unwinder/i386/unwinder.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ BOOL OOPStackUnwinderX86::Unwind(T_CONTEXT* pContextRecord, T_KNONVOLATILE_CONTE
3737
dac_cast<PTR_CBYTE>(gcInfoToken.Info) + hdrInfoSize,
3838
PTR_CBYTE(codeInfo.GetJitManager()->GetFuncletStartAddress(&codeInfo)),
3939
codeInfo.IsFunclet(),
40-
UpdateAllRegs))
40+
true))
4141
{
4242
return FALSE;
4343
}
@@ -193,10 +193,7 @@ BOOL DacUnwindStackFrame(T_CONTEXT* pContextRecord, T_KNONVOLATILE_CONTEXT_POINT
193193
// language specific exception handler is returned. Otherwise, NULL is
194194
// returned.
195195
//
196-
EXTERN_C
197-
NTSYSAPI
198196
PEXCEPTION_ROUTINE
199-
NTAPI
200197
RtlVirtualUnwind (
201198
_In_ DWORD HandlerType,
202199
_In_ DWORD ImageBase,

src/coreclr/vm/.vscode/c_cpp_properties.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
"FEATURE_USE_ASM_GC_WRITE_BARRIERS",
7272
"FEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP",
7373
"FEATURE_UTF8STRING=1",
74-
"FEATURE_WIN32_REGISTRY",
7574
"TARGET_WINDOWS=1",
7675
"PROFILING_SUPPORTED_DATA",
7776
"UNICODE",

src/coreclr/vm/codeman.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2619,21 +2619,20 @@ class EECodeInfo
26192619
PTR_RUNTIME_FUNCTION GetFunctionEntry();
26202620
BOOL IsFunclet() { WRAPPER_NO_CONTRACT; return GetJitManager()->IsFunclet(this); }
26212621
EECodeInfo GetMainFunctionInfo();
2622-
ULONG GetFixedStackSize();
2623-
2624-
#if defined(TARGET_AMD64)
2625-
BOOL HasFrameRegister();
2626-
#endif // TARGET_AMD64
2622+
#endif // FEATURE_EH_FUNCLETS
26272623

2628-
#else // FEATURE_EH_FUNCLETS
2624+
#if defined(TARGET_X86)
26292625
ULONG GetFixedStackSize()
26302626
{
26312627
WRAPPER_NO_CONTRACT;
26322628
return GetCodeManager()->GetFrameSize(GetGCInfoToken());
26332629
}
2634-
#endif // FEATURE_EH_FUNCLETS
2630+
#endif // TARGET_X86
26352631

26362632
#if defined(TARGET_AMD64)
2633+
BOOL HasFrameRegister();
2634+
ULONG GetFixedStackSize();
2635+
26372636
void GetOffsetsFromUnwindInfo(ULONG* pRSPOffset, ULONG* pRBPOffset);
26382637
ULONG GetFrameOffsetFromUnwindInfo();
26392638
#if defined(_DEBUG) && defined(HAVE_GCCOVER)

src/coreclr/vm/eetwain.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,6 @@ OBJECTREF EECodeManager::GetInstance( PREGDISPLAY pContext,
16501650
hdrInfo info;
16511651
unsigned stackDepth;
16521652
TADDR taArgBase;
1653-
unsigned count;
16541653

16551654
/* Extract the necessary information from the info block header */
16561655

@@ -1709,7 +1708,7 @@ OBJECTREF EECodeManager::GetInstance( PREGDISPLAY pContext,
17091708
/* The 'this' pointer can never be located in the untracked table */
17101709
/* as we only allow pinned and byrefs in the untracked table */
17111710

1712-
count = info.untrackedCnt;
1711+
unsigned count = info.untrackedCnt;
17131712
while (count-- > 0)
17141713
{
17151714
fastSkipSigned(table);

src/coreclr/vm/excep.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,9 @@ EXCEPTION_HANDLER_DECL(COMPlusFrameHandlerRevCom);
520520
// Pop off any SEH handlers we have registered below pTargetSP
521521
VOID __cdecl PopSEHRecords(LPVOID pTargetSP);
522522

523-
#if defined(TARGET_X86) && defined(DEBUGGING_SUPPORTED)
523+
#ifdef DEBUGGING_SUPPORTED
524524
VOID UnwindExceptionTrackerAndResumeInInterceptionFrame(ExInfo* pExInfo, EHContext* context);
525-
#endif // TARGET_X86 && DEBUGGING_SUPPORTED
525+
#endif // DEBUGGING_SUPPORTED
526526

527527
BOOL PopNestedExceptionRecords(LPVOID pTargetSP, BOOL bCheckForUnknownHandlers = FALSE);
528528
VOID PopNestedExceptionRecords(LPVOID pTargetSP, T_CONTEXT *pCtx, void *pSEH);

src/coreclr/vm/exinfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ void ExInfo::Init()
121121

122122
m_pTopMostHandlerDuringSO = NULL;
123123

124-
#if defined(TARGET_X86) && defined(DEBUGGING_SUPPORTED)
124+
#ifdef DEBUGGING_SUPPORTED
125125
m_InterceptionContext.Init();
126126
m_ValidInterceptionContext = FALSE;
127-
#endif //TARGET_X86 && DEBUGGING_SUPPORTED
127+
#endif // DEBUGGING_SUPPORTED
128128
}
129129

130130
ExInfo::ExInfo()

src/coreclr/vm/exinfo.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class ExInfo
136136
EHClauseInfo m_EHClauseInfo;
137137
ExceptionFlags m_ExceptionFlags;
138138

139-
#if defined(TARGET_X86) && defined(DEBUGGING_SUPPORTED)
139+
#ifdef DEBUGGING_SUPPORTED
140140
EHContext m_InterceptionContext;
141141
BOOL m_ValidInterceptionContext;
142142
#endif
@@ -155,9 +155,7 @@ class ExInfo
155155
ExInfo& operator=(const ExInfo &from);
156156
};
157157

158-
#if defined(TARGET_X86)
159158
PTR_ExInfo GetEHTrackerForPreallocatedException(OBJECTREF oPreAllocThrowable, PTR_ExInfo pStartingEHTracker);
160-
#endif // TARGET_X86
161159

162160
#else // !FEATURE_EH_FUNCLETS
163161

src/coreclr/vm/i386/asmconstants.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,6 @@ ASMCONSTANTS_C_ASSERT(OFFSETOF__FrameHandlerExRecord__m_pEntryFrame == offsetof(
231231
#define STACK_OVERWRITE_BARRIER_VALUE 0xabcdefab
232232
#endif
233233

234-
#define SIZEOF_FrameHandlerExRecordWithBarrier 0x5c
235-
ASMCONSTANTS_C_ASSERT(SIZEOF_FrameHandlerExRecordWithBarrier == sizeof(FrameHandlerExRecordWithBarrier))
236234
#endif
237235

238236

src/coreclr/vm/i386/jithelp.asm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ EXTERN g_GCShadowEnd:DWORD
7575
INVALIDGCVALUE equ 0CCCCCCCDh
7676
endif
7777

78+
ifndef FEATURE_EH_FUNCLETS
7879
EXTERN _COMPlusEndCatch@20:PROC
80+
endif
7981

8082
.686P
8183
.XMM
@@ -1298,6 +1300,7 @@ ret
12981300
_JIT_PatchedCodeEnd@0 endp
12991301

13001302

1303+
ifndef FEATURE_EH_FUNCLETS
13011304
; Note that the debugger skips this entirely when doing SetIP,
13021305
; since COMPlusCheckForAbort should always return 0. Excep.cpp:LeaveCatch
13031306
; asserts that to be true. If this ends up doing more work, then the
@@ -1325,6 +1328,7 @@ JIT_EndCatch PROC stdcall public
13251328
jmp edx ; eip = new eip
13261329

13271330
JIT_EndCatch ENDP
1331+
endif
13281332

13291333
; The following helper will access ("probe") a word on each page of the stack
13301334
; starting with the page right beneath esp down to the one pointed to by eax.

src/coreclr/vm/rtlfunctions.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "rtlfunctions.h"
1717

1818

19-
#ifdef TARGET_AMD64
19+
#ifdef HOST_AMD64
2020

2121
RtlVirtualUnwindFn* RtlVirtualUnwind_Unsafe = NULL;
2222

@@ -45,17 +45,17 @@ HRESULT EnsureRtlFunctions()
4545
return S_OK;
4646
}
4747

48-
#else // TARGET_AMD64
48+
#else // HOST_AMD64
4949

5050
HRESULT EnsureRtlFunctions()
5151
{
5252
LIMITED_METHOD_CONTRACT;
5353
return S_OK;
5454
}
5555

56-
#endif // TARGET_AMD64
56+
#endif // HOST_AMD64
5757

58-
#if defined(FEATURE_EH_FUNCLETS)
58+
#ifndef HOST_X86
5959

6060
VOID InstallEEFunctionTable (
6161
PVOID pvTableID,
@@ -127,5 +127,4 @@ VOID InstallEEFunctionTable (
127127
}
128128
}
129129

130-
#endif // FEATURE_EH_FUNCLETS
131-
130+
#endif // HOST_X86

src/coreclr/vm/rtlfunctions.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ PVOID DecodeDynamicFunctionTableContext (PVOID pvContext)
4949
#endif // FEATURE_EH_FUNCLETS
5050

5151

52-
#if defined(FEATURE_EH_FUNCLETS) && !defined(DACCESS_COMPILE) && !defined(TARGET_UNIX)
52+
#if !defined(DACCESS_COMPILE) && defined(HOST_WINDOWS) && !defined(HOST_X86)
5353

5454
// Wrapper for RtlInstallFunctionTableCallback.
5555
VOID InstallEEFunctionTable(
@@ -67,12 +67,12 @@ VOID DeleteEEFunctionTable(
6767
RtlDeleteFunctionTable((PT_RUNTIME_FUNCTION)((ULONG64)pvTableID | 3));
6868
}
6969

70-
#else // FEATURE_EH_FUNCLETS && !DACCESS_COMPILE && !TARGET_UNIX
70+
#else
7171

7272
#define InstallEEFunctionTable(pvTableID, pvStartRange, cbRange, pfnGetRuntimeFunctionCallback, pvContext, TableType) do { } while (0)
7373
#define DeleteEEFunctionTable(pvTableID) do { } while (0)
7474

75-
#endif // FEATURE_EH_FUNCLETS && !DACCESS_COMPILE && !TARGET_UNIX
75+
#endif
7676

7777

7878
#endif // !__RTLFUNCTIONS_H__

src/coreclr/vm/threads.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6222,9 +6222,7 @@ class StackWalkerWalkingThreadHolder
62226222
#if defined(TARGET_WINDOWS) && defined(TARGET_AMD64)
62236223
EXTERN_C void STDCALL ClrRestoreNonvolatileContextWorker(PCONTEXT ContextRecord, DWORD64 ssp);
62246224
#endif
6225-
#if !(defined(TARGET_WINDOWS) && defined(TARGET_X86))
62266225
void ClrRestoreNonvolatileContext(PCONTEXT ContextRecord);
6227-
#endif
62286226
#endif // DACCESS_COMPILE
62296227

62306228
#endif //__threads_h__

0 commit comments

Comments
 (0)