Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 5.6k
Use CORJIT_PREJIT_UNSUPPORTED instead of CORJIT_LIMITATION for BlockNonDeterministicIntrinsics#123716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Use CORJIT_PREJIT_UNSUPPORTED instead of CORJIT_LIMITATION for BlockNonDeterministicIntrinsics #123716
Changes from all commits
6e7c2ef2b48dc9acd3f38f07c4f84a0f47ae966b83File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -32,13 +32,14 @@ | ||
| // These are error codes returned by CompileMethod | ||
| enum CorJitResult | ||
| { | ||
| CORJIT_OK = 0, | ||
| CORJIT_BADCODE = (JITINTERFACE_HRESULT)0x80000001, | ||
| CORJIT_OUTOFMEM = (JITINTERFACE_HRESULT)0x80000002, | ||
| CORJIT_INTERNALERROR = (JITINTERFACE_HRESULT)0x80000003, | ||
| CORJIT_SKIPPED = (JITINTERFACE_HRESULT)0x80000004, | ||
| CORJIT_RECOVERABLEERROR = (JITINTERFACE_HRESULT)0x80000005, | ||
| CORJIT_IMPLLIMITATION= (JITINTERFACE_HRESULT)0x80000006, | ||
| CORJIT_OK = 0, | ||
| CORJIT_BADCODE = (JITINTERFACE_HRESULT)0x80000001, | ||
| CORJIT_OUTOFMEM = (JITINTERFACE_HRESULT)0x80000002, | ||
| CORJIT_INTERNALERROR = (JITINTERFACE_HRESULT)0x80000003, | ||
| CORJIT_SKIPPED = (JITINTERFACE_HRESULT)0x80000004, | ||
| CORJIT_RECOVERABLEERROR = (JITINTERFACE_HRESULT)0x80000005, | ||
| CORJIT_IMPLLIMITATION = (JITINTERFACE_HRESULT)0x80000006, | ||
| CORJIT_R2R_UNSUPPORTED = (JITINTERFACE_HRESULT)0x80000007, | ||
EgorBo marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| }; | ||
| /*****************************************************************************/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -7706,7 +7706,8 @@ int jitNativeCode(CORINFO_METHOD_HANDLE methodHnd, | ||
| result = param.result; | ||
| if (!inlineInfo && | ||
| (result == CORJIT_INTERNALERROR || result == CORJIT_RECOVERABLEERROR || result == CORJIT_IMPLLIMITATION) && | ||
| (result == CORJIT_INTERNALERROR || result == CORJIT_RECOVERABLEERROR || result == CORJIT_IMPLLIMITATION || | ||
| result == CORJIT_R2R_UNSUPPORTED) && | ||
EgorBo marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| !jitFallbackCompile) | ||
| { | ||
| // If we failed the JIT, reattempt with debuggable code. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -8480,7 +8480,7 @@ class Compiler | ||
| { | ||
| if (mustExpand) | ||
| { | ||
| implLimitation(); | ||
| implReadyToRunUnsupported(); | ||
| } | ||
| return true; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -381,7 +381,7 @@ private CompilationResult CompileMethodInternal(IMethodNode methodCodeNodeNeedin | ||
| { | ||
| ThrowHelper.ThrowInvalidProgramException(); | ||
| } | ||
| if (result == CorJitResult.CORJIT_IMPLLIMITATION) | ||
| if (result == CorJitResult.CORJIT_IMPLLIMITATION || result == CorJitResult.CORJIT_R2R_UNSUPPORTED) | ||
| { | ||
| #if READYTORUN | ||
| throw new RequiresRuntimeJitException("JIT implementation limitation"); | ||
EgorBo marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -334,7 +334,7 @@ ReplayResults JitInstance::CompileMethod(MethodContext* MethodToCompile, int mcI | ||
| } | ||
| } | ||
| if ((jitResult == CORJIT_OK) || (jitResult == CORJIT_BADCODE)) | ||
| if ((jitResult == CORJIT_OK) || (jitResult == CORJIT_BADCODE) || (jitResult == CORJIT_R2R_UNSUPPORTED)) | ||
| { | ||
| // capture the results of compilation | ||
| pParam->pThis->mc->cr->recCompileMethod(&NEntryBlock, &NCodeSizeBlock, jitResult); | ||
EgorBo marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.