From 9f08404d97b0c1ee0d1bcabb8046e3efb49163c0 Mon Sep 17 00:00:00 2001 From: Brian Robbins Date: Wed, 21 Feb 2018 21:59:17 -0800 Subject: Fix EventPipe Test Failures Under GCStress (#16494) * Disable inducedgc test when GCStress is enabled. * Suppress host contract violation in EventPipe::WalkManagedStackForThread. --- src/vm/eventpipe.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/vm/eventpipe.cpp') 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( -- cgit v1.2.3