Call JIT compiler's shutdown logic from crossgen. (dotnet/coreclr#7663)
authorPeter Kukol <pkukol@users.noreply.github.com>
Wed, 19 Oct 2016 23:28:20 +0000 (17:28 -0600)
committerJan Kotas <jkotas@microsoft.com>
Wed, 19 Oct 2016 23:28:20 +0000 (16:28 -0700)
* Call JIT compiler's shutdown logic from crossgen.

Commit migrated from https://github.com/dotnet/coreclr/commit/dcce190472393d828d3fb364e9e5fe5906c42822

src/coreclr/src/zap/zapper.cpp

index bcb1b0e..b375709 100644 (file)
@@ -1017,6 +1017,15 @@ void Zapper::DestroyDomain()
     CleanupAssembly();
 
     //
+    // Shut down JIT compiler.
+    //
+
+    if (m_pJitCompiler != NULL)
+    {
+        m_pJitCompiler->ProcessShutdownWork(NULL);
+    }
+
+    //
     // Get rid of domain.
     //