diff options
Diffstat (limited to 'src/vm/eventpipe.cpp')
-rw-r--r-- | src/vm/eventpipe.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vm/eventpipe.cpp b/src/vm/eventpipe.cpp index 026a775f47..e413713053 100644 --- a/src/vm/eventpipe.cpp +++ b/src/vm/eventpipe.cpp @@ -708,6 +708,10 @@ bool EventPipe::WalkManagedStackForThread(Thread *pThread, StackContents &stackC } CONTRACTL_END; + // Calling into StackWalkFrames in preemptive mode violates the host contract, + // but this contract is not used on CoreCLR. + CONTRACT_VIOLATION( HostViolation ); + stackContents.Reset(); StackWalkAction swaRet = pThread->StackWalkFrames( |