Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit bdfce9e

Browse files
authored
GC update from CoreRT (#6305)
https://github.com/dotnet/corert/tree/master/src/Native/gc bc9671edca37502794c01647215519d4254d3ad4
1 parent 1383b55 commit bdfce9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/gc/sample/gcenv.unix.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ int32_t FastInterlockExchange(int32_t volatile *Target, int32_t Value)
2929
return __sync_swap(Target, Value);
3030
}
3131

32-
int32_t FastInterlockCompareExchange(int32_t volatile *Destination, int32_t Exchange, int32_t Comperand)
32+
int32_t FastInterlockCompareExchange(int32_t volatile *Destination, int32_t Exchange, int32_t Comparand)
3333
{
34-
return __sync_val_compare_and_swap(Destination, Comperand, Exchange);
34+
return __sync_val_compare_and_swap(Destination, Comparand, Exchange);
3535
}
3636

3737
int32_t FastInterlockExchangeAdd(int32_t volatile *Addend, int32_t Value)
@@ -44,9 +44,9 @@ void * _FastInterlockExchangePointer(void * volatile *Target, void * Value)
4444
return __sync_swap(Target, Value);
4545
}
4646

47-
void * _FastInterlockCompareExchangePointer(void * volatile *Destination, void * Exchange, void * Comperand)
47+
void * _FastInterlockCompareExchangePointer(void * volatile *Destination, void * Exchange, void * Comparand)
4848
{
49-
return __sync_val_compare_and_swap(Destination, Comperand, Exchange);
49+
return __sync_val_compare_and_swap(Destination, Comparand, Exchange);
5050
}
5151

5252
void FastInterlockOr(uint32_t volatile *p, uint32_t msk)

0 commit comments

Comments
 (0)