GC update from CoreRT (#6305)
authorJan Kotas <jkotas@microsoft.com>
Sun, 17 Jul 2016 07:24:32 +0000 (09:24 +0200)
committerGitHub <noreply@github.com>
Sun, 17 Jul 2016 07:24:32 +0000 (09:24 +0200)
https://github.com/dotnet/corert/tree/master/src/Native/gc bc9671edca37502794c01647215519d4254d3ad4

src/gc/sample/gcenv.unix.cpp

index 5158206..53c821a 100644 (file)
@@ -29,9 +29,9 @@ int32_t FastInterlockExchange(int32_t volatile *Target, int32_t Value)
     return __sync_swap(Target, Value);
 }
 
-int32_t FastInterlockCompareExchange(int32_t volatile *Destination, int32_t Exchange, int32_t Comperand)
+int32_t FastInterlockCompareExchange(int32_t volatile *Destination, int32_t Exchange, int32_t Comparand)
 {
-    return __sync_val_compare_and_swap(Destination, Comperand, Exchange);
+    return __sync_val_compare_and_swap(Destination, Comparand, Exchange);
 }
 
 int32_t FastInterlockExchangeAdd(int32_t volatile *Addend, int32_t Value)
@@ -44,9 +44,9 @@ void * _FastInterlockExchangePointer(void * volatile *Target, void * Value)
     return __sync_swap(Target, Value);
 }
 
-void * _FastInterlockCompareExchangePointer(void * volatile *Destination, void * Exchange, void * Comperand)
+void * _FastInterlockCompareExchangePointer(void * volatile *Destination, void * Exchange, void * Comparand)
 {
-    return __sync_val_compare_and_swap(Destination, Comperand, Exchange);
+    return __sync_val_compare_and_swap(Destination, Comparand, Exchange);
 }
 
 void FastInterlockOr(uint32_t volatile *p, uint32_t msk)