Fix incorrect runtime contract for FailedAssembly::Initialize
authorRichard L Ford <richford@microsoft.com>
Thu, 8 Oct 2015 20:21:14 +0000 (13:21 -0700)
committerRichard L Ford <richford@microsoft.com>
Thu, 8 Oct 2015 20:23:54 +0000 (13:23 -0700)
FailedAssembly::Initialize may call CLRException::GetHR.
CLRException::GetHR is marked GC_TRIGGERS.
FailedAssembly::Initialize has to be marked GC_TRIGGERS
as well.

src/vm/appdomain.hpp

index 6649c66..de60e95 100644 (file)
@@ -1857,7 +1857,7 @@ struct FailedAssembly {
         CONTRACTL
         {
             THROWS;
-            GC_NOTRIGGER;
+            GC_TRIGGERS;
             MODE_ANY;
         }
         CONTRACTL_END;