Skip to content

Commit 1f4482c

Browse files
authored
Cleanup #ifdefs around FindFirstInterruptiblePoint (#113873)
1 parent a92f652 commit 1f4482c

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/coreclr/vm/gcenv.ee.common.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "gcenv.h"
66
#include <exinfo.h>
77

8-
#if defined(FEATURE_EH_FUNCLETS)
8+
#if defined(FEATURE_EH_FUNCLETS) && defined(USE_GC_INFO_DECODER)
99

1010
struct FindFirstInterruptiblePointState
1111
{
@@ -58,7 +58,6 @@ bool FindFirstInterruptiblePointStateCB(
5858
// the end is exclusive). Return -1 if no such point exists.
5959
unsigned FindFirstInterruptiblePoint(CrawlFrame* pCF, unsigned offs, unsigned endOffs)
6060
{
61-
#ifdef USE_GC_INFO_DECODER
6261
GCInfoToken gcInfoToken = pCF->GetGCInfoToken();
6362
GcInfoDecoder gcInfoDecoder(gcInfoToken, DECODE_FOR_RANGES_CALLBACK);
6463

@@ -70,13 +69,9 @@ unsigned FindFirstInterruptiblePoint(CrawlFrame* pCF, unsigned offs, unsigned en
7069
gcInfoDecoder.EnumerateInterruptibleRanges(&FindFirstInterruptiblePointStateCB, &state);
7170

7271
return state.returnOffs;
73-
#else
74-
PORTABILITY_ASSERT("FindFirstInterruptiblePoint");
75-
return -1;
76-
#endif // USE_GC_INFO_DECODER
7772
}
7873

79-
#endif // FEATURE_EH_FUNCLETS
74+
#endif // FEATURE_EH_FUNCLETS && USE_GC_INFO_DECODER
8075

8176
//-----------------------------------------------------------------------------
8277
// Determine whether we should report the generic parameter context

0 commit comments

Comments
 (0)