From bdfce9ed7fb93086f0b10ce999e2c21f34e08ada Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Sun, 17 Jul 2016 09:24:32 +0200 Subject: [PATCH] GC update from CoreRT (#6305) https://github.com/dotnet/corert/tree/master/src/Native/gc bc9671edca37502794c01647215519d4254d3ad4 --- src/gc/sample/gcenv.unix.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gc/sample/gcenv.unix.cpp b/src/gc/sample/gcenv.unix.cpp index 5158206..53c821a 100644 --- a/src/gc/sample/gcenv.unix.cpp +++ b/src/gc/sample/gcenv.unix.cpp @@ -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) -- 2.7.4