Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 47007b0

Browse files
committed
fix non-gc stress case
1 parent de5a885 commit 47007b0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/vm/prestub.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,9 @@ PCODE MethodDesc::JitCompileCodeLocked(PrepareCodeConfig* pConfig, JitListLockEn
902902
_ASSERTE(!"GC Cover native code publish failed");
903903
}
904904
}
905-
#else
905+
else
906+
#endif // HAVE_GCCOVER
907+
906908
// Aside from rejit, performing a SetNativeCodeInterlocked at this point
907909
// generally ensures that there is only one winning version of the native
908910
// code. This also avoid races with profiler overriding ngened code (see
@@ -913,7 +915,6 @@ PCODE MethodDesc::JitCompileCodeLocked(PrepareCodeConfig* pConfig, JitListLockEn
913915
// Another thread beat us to publishing its copy of the JITted code.
914916
return pOtherCode;
915917
}
916-
#endif // HAVE_GCCOVER
917918

918919
#if defined(FEATURE_JIT_PITCHING)
919920
SavePitchingCandidate(this, *pSizeOfCode);

0 commit comments

Comments
 (0)