GC update from CoreRT (#6984)
authorJan Kotas <jkotas@microsoft.com>
Tue, 30 Aug 2016 22:47:34 +0000 (15:47 -0700)
committerGitHub <noreply@github.com>
Tue, 30 Aug 2016 22:47:34 +0000 (15:47 -0700)
https://github.com/dotnet/corert/tree/master/src/Native/gc 97dd6d2cbb50901cc3651f41a53a4ff9a1052391

src/gc/env/gcenv.base.h
src/gc/gc.cpp

index 97f1661..a94f1a6 100644 (file)
@@ -73,7 +73,7 @@ inline HRESULT HRESULT_FROM_WIN32(unsigned long x)
 #define FALSE false
 
 #define CALLBACK __stdcall
-#define FORCEINLINE inline
+#define FORCEINLINE __forceinline
 
 #define INFINITE 0xFFFFFFFF
 
index dad7133..a62b02d 100644 (file)
@@ -36716,9 +36716,10 @@ void initGCShadow()
             // running we need to be in a state that will not trigger any 
             // additional AVs while we fail to allocate a shadow segment, i.e. 
             // ensure calls to updateGCShadow() checkGCWriteBarrier() don't AV
+            deleteGCShadow();
             return;
         }
-        
+
         g_GCShadowEnd += len;
     }