Fallback to JIT for explicit tailcalls in R2R
authorJan Kotas <jkotas@microsoft.com>
Fri, 11 Mar 2016 22:52:58 +0000 (14:52 -0800)
committerJan Kotas <jkotas@microsoft.com>
Fri, 11 Mar 2016 22:52:58 +0000 (14:52 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/2ff99edf3dec6b5ad68c24444c9e68b880f844ca

src/coreclr/src/zap/zapinfo.cpp

index 0b9d0a6..a42e48c 100644 (file)
@@ -3588,7 +3588,15 @@ bool ZapInfo::canTailCall(CORINFO_METHOD_HANDLE caller,
 #ifdef FEATURE_READYTORUN_COMPILER
     // READYTORUN: FUTURE: Delay load fixups for tailcalls
     if (IsReadyToRunCompilation())
+    {
+        if (fIsTailPrefix)
+        {
+            m_zapper->Warning(W("ReadyToRun: Explicit tailcalls not supported\n"));
+            ThrowHR(E_NOTIMPL);
+        }
+
         return false;
+    }
 #endif
 
     return m_pEEJitInfo->canTailCall(caller, declaredCallee, exactCallee, fIsTailPrefix);