- 
                Notifications
    You must be signed in to change notification settings 
- Fork 5.2k
Closed
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Milestone
Description
The duplicate EH clauses are no longer used by any runtime. CoreCLR stopped using them with new exception handling, and the legacy EH has been removed. NativeAOT never used them. We should just stop emitting them altogether.
runtime/src/coreclr/jit/codegencommon.cpp
Lines 2355 to 2369 in 8c3a2e1
| // Duplicate clauses are not used by NativeAOT ABI | |
| if (compiler->UsesFunclets() && !isNativeAOT) | |
| { | |
| for (XTnum = 0; XTnum < compiler->compHndBBtabCount; XTnum++) | |
| { | |
| for (enclosingTryIndex = compiler->ehTrueEnclosingTryIndex(XTnum); // find the true enclosing try index, | |
| // ignoring 'mutual protect' trys | |
| enclosingTryIndex != EHblkDsc::NO_ENCLOSING_INDEX; | |
| enclosingTryIndex = compiler->ehGetEnclosingTryIndex(enclosingTryIndex)) | |
| { | |
| ++duplicateClauseCount; | |
| } | |
| } | |
| EHCount += duplicateClauseCount; | |
| } | 
Metadata
Metadata
Assignees
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI