summaryrefslogtreecommitdiff
path: root/src/gc
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2016-07-17 09:24:32 +0200
committerGitHub <noreply@github.com>2016-07-17 09:24:32 +0200
commitbdfce9ed7fb93086f0b10ce999e2c21f34e08ada (patch)
treee82c60f2d4cf18481334d5b017ef112606c162b5 /src/gc
parent1383b557d7be7268fa3e80dac8c908eae335a0e5 (diff)
downloadcoreclr-bdfce9ed7fb93086f0b10ce999e2c21f34e08ada.tar.gz
coreclr-bdfce9ed7fb93086f0b10ce999e2c21f34e08ada.tar.bz2
coreclr-bdfce9ed7fb93086f0b10ce999e2c21f34e08ada.zip
GC update from CoreRT (#6305)
https://github.com/dotnet/corert/tree/master/src/Native/gc bc9671edca37502794c01647215519d4254d3ad4
Diffstat (limited to 'src/gc')
-rw-r--r--src/gc/sample/gcenv.unix.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gc/sample/gcenv.unix.cpp b/src/gc/sample/gcenv.unix.cpp
index 515820650b..53c821a5bb 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)