File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -1417,16 +1417,9 @@ BOOL OnGcCoverageInterrupt(PCONTEXT regs)
1417
1417
RemoveGcCoverageInterrupt (instrPtr, savedInstrPtr, gcCover, offset);
1418
1418
return TRUE ;
1419
1419
}
1420
-
1421
- // If the thread is in preemptive mode then we must be in a
1422
- // PInvoke stub, a method that has an inline PInvoke frame,
1423
- // or be in a reverse PInvoke stub that's about to return.
1424
- //
1425
- // The PInvoke cases should should properly report GC refs if we
1426
- // trigger GC here. But a reverse PInvoke stub may over-report
1427
- // leading to spurious failures, as we would not normally report
1428
- // anything for this method at this point.
1429
- if (!pThread->PreemptiveGCDisabled () && pMD->HasUnmanagedCallersOnlyAttribute ())
1420
+
1421
+ // The thread is in preemptive mode. Normally, it should not be able to trigger GC.
1422
+ if (!pThread->PreemptiveGCDisabled ())
1430
1423
{
1431
1424
RemoveGcCoverageInterrupt (instrPtr, savedInstrPtr, gcCover, offset);
1432
1425
return TRUE ;
You can’t perform that action at this time.
0 commit comments