Allow jit internal errors to propagate to user visible exception (#16320)
authorAndy Ayers <andya@microsoft.com>
Sat, 10 Feb 2018 11:57:44 +0000 (03:57 -0800)
committerJan Kotas <jkotas@microsoft.com>
Sat, 10 Feb 2018 11:57:44 +0000 (03:57 -0800)
May help users find workarounds for cases where the jits hit some
kind of implementation limit, as in #12480 or #14762.

src/vm/jitinterface.cpp

index 78f3a51..819198b 100644 (file)
@@ -12523,16 +12523,9 @@ void ThrowExceptionForJit(HRESULT res)
             COMPlusThrowOM();              
             break; 
             
-#ifdef _TARGET_X86_
-        // Currently, only x86 JIT returns adequate error codes. The x86 JIT is also the
-        // JIT that has more limitations and given that to get this message for 64 bit
-        // is going to require some code churn (either changing their EH handlers or
-        // fixing the 3 or 4 code sites they have that return CORJIT_INTERNALERROR independently
-        // of the error, the least risk fix is making this x86 only.
         case CORJIT_INTERNALERROR:
             COMPlusThrow(kInvalidProgramException, (UINT) IDS_EE_JIT_COMPILER_ERROR);
             break;   
-#endif
 
         case CORJIT_BADCODE:
         default: