Introduce CORINFO_EH_CLAUSE_SAMETRY flag for CoreRT ABI (dotnet/coreclr#8422)
authorJan Kotas <jkotas@microsoft.com>
Fri, 2 Dec 2016 11:06:55 +0000 (03:06 -0800)
committerGitHub <noreply@github.com>
Fri, 2 Dec 2016 11:06:55 +0000 (03:06 -0800)
commit1e6586f25a89ecb5dfa73d4ca76c676ff0e24232
tree4700ac710bced80f4a10c61bc513f7c610f902c6
parent4a067324f7738f6cb94e173f7ab548b4db8f3a07
Introduce CORINFO_EH_CLAUSE_SAMETRY flag for CoreRT ABI (dotnet/coreclr#8422)

CORINFO_EH_CLAUSE_SAMEBLOCK flag is returned on mutually protecting EH clauses for CoreRT ABI. It is set on EH clauses that cover same try block as the previous one. The runtime cannot reliably infer this information from native code offsets without full description of duplicate clauses because of different try blocks can have same offsets. Alternative solution to this problem would be inserting extra nops to ensure that different try blocks have different offsets.

Commit migrated from https://github.com/dotnet/coreclr/commit/fcc57b23e2f2072e07d69154faab61f7d52e594b
src/coreclr/src/inc/corinfo.h
src/coreclr/src/jit/codegencommon.cpp
src/coreclr/src/jit/jiteh.cpp