summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vm/precode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/precode.cpp b/src/vm/precode.cpp
index e47e7a7f74..7b4c1de516 100644
--- a/src/vm/precode.cpp
+++ b/src/vm/precode.cpp
@@ -456,6 +456,7 @@ void Precode::ResetTargetInterlocked()
BOOL Precode::SetTargetInterlocked(PCODE target, BOOL fOnlyRedirectFromPrestub)
{
WRAPPER_NO_CONTRACT;
+ _ASSERTE(!IsPointingToPrestub(target));
PCODE expected = GetTarget();
BOOL ret = FALSE;
@@ -498,7 +499,6 @@ BOOL Precode::SetTargetInterlocked(PCODE target, BOOL fOnlyRedirectFromPrestub)
// Although executable code is modified on x86/x64, a FlushInstructionCache() is not necessary on those platforms due to the
// interlocked operation above (see ClrFlushInstructionCache())
- _ASSERTE(!IsPointingToPrestub());
return ret;
}