Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Commit

Permalink
Mark monitor helpers as requiring runtime JIT (#6789)
Browse files Browse the repository at this point in the history
In accordance with Crossgen behavior I am blocking out the
Monitor-related R2R helpers as requiring runtime JIT.

Thanks

Tomas
  • Loading branch information
trylek committed Jan 9, 2019
1 parent 291a01d commit 9005dfa
Showing 1 changed file with 6 additions and 5 deletions.
Expand Up @@ -496,11 +496,12 @@ public ISymbolNode ExternSymbol(ILCompiler.ReadyToRunHelper helper)
r2rHelper = ILCompiler.DependencyAnalysis.ReadyToRun.ReadyToRunHelper.READYTORUN_HELPER_FltRound;
break;

case ILCompiler.ReadyToRunHelper.GetRefAny:
// TODO-PERF: currently not implemented in Crossgen
ThrowHelper.ThrowInvalidProgramException();
// ThrowInvalidProgramException should never return
throw new NotImplementedException();
case ILCompiler.ReadyToRunHelper.MonitorEnter:
case ILCompiler.ReadyToRunHelper.MonitorExit:
case ILCompiler.ReadyToRunHelper.MonitorEnterStatic:
case ILCompiler.ReadyToRunHelper.MonitorExitStatic:
case ILCompiler.ReadyToRunHelper.GetRefAny: // TODO-PERF: currently not implemented in Crossgen
throw new RequiresRuntimeJitException(helper.ToString());

// JIT32 x86-specific write barriers
case ILCompiler.ReadyToRunHelper.WriteBarrier_EAX:
Expand Down

0 comments on commit 9005dfa

Please sign in to comment.