From: Jan Kotas Date: Sun, 17 Jul 2016 07:24:32 +0000 (+0200) Subject: GC update from CoreRT (#6305) X-Git-Tag: accepted/tizen/base/20180629.140029~4038 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bdfce9ed7fb93086f0b10ce999e2c21f34e08ada;p=platform%2Fupstream%2Fcoreclr.git GC update from CoreRT (#6305) https://github.com/dotnet/corert/tree/master/src/Native/gc bc9671edca37502794c01647215519d4254d3ad4 --- 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)