Skip to content

Commit

Permalink
[x86/Linux] Mark LeaveCatch as NYI (dotnet/coreclr#8384)
Browse files Browse the repository at this point in the history
* Disable LeaveCatch for non-Windows platforms

* Mark LeaveCatch as NYI

* Use #ifndef as before


Commit migrated from dotnet/coreclr@75a625f
  • Loading branch information
parjong authored and janvorli committed Dec 5, 2016
1 parent 8a7d25b commit 2215cce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/coreclr/src/vm/excep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1690,6 +1690,7 @@ BOOL LeaveCatch(ICodeManager* pEECM,
}
CONTRACTL_END;

#ifndef FEATURE_PAL
// We can assert these things here, and skip a call
// to COMPlusCheckForAbort later.

Expand All @@ -1707,6 +1708,10 @@ BOOL LeaveCatch(ICodeManager* pEECM,

SetSP(pCtx, (UINT_PTR)esp);
return TRUE;
#else // FEATURE_PAL
PORTABILITY_ASSERT("LeaveCatch");
return FALSE;
#endif
}
#endif // WIN64EXCEPTIONS

Expand Down

0 comments on commit 2215cce

Please sign in to comment.