summaryrefslogtreecommitdiff
path: root/src/vm/ecalllist.h
diff options
context:
space:
mode:
authormikedn <onemihaid@hotmail.com>2018-01-28 20:58:58 +0200
committerJan Kotas <jkotas@microsoft.com>2018-01-28 10:58:58 -0800
commite3562c9bcc92ec04eec97cf1a945e7ea6d5234d2 (patch)
treeebda9d8f4bd5b3bd17eb49da0fda64e920923c06 /src/vm/ecalllist.h
parent256b05fae0d8e7a95235212064463b2ebbcc8f0f (diff)
downloadcoreclr-e3562c9bcc92ec04eec97cf1a945e7ea6d5234d2.tar.gz
coreclr-e3562c9bcc92ec04eec97cf1a945e7ea6d5234d2.tar.bz2
coreclr-e3562c9bcc92ec04eec97cf1a945e7ea6d5234d2.zip
Improve Interlocked.Exchange<T> (#16058)
Replace TypedReference with Unsafe.As, it generates far less code and, with the help of AggresiveInlining, it allows Exchange<T> to inline.
Diffstat (limited to 'src/vm/ecalllist.h')
-rw-r--r--src/vm/ecalllist.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/vm/ecalllist.h b/src/vm/ecalllist.h
index 7cd6889c47..525227b7c3 100644
--- a/src/vm/ecalllist.h
+++ b/src/vm/ecalllist.h
@@ -982,9 +982,6 @@ FCFuncStart(gInterlockedFuncs)
FCIntrinsicSig("ExchangeAdd", &gsig_SM_RefInt_Int_RetInt, COMInterlocked::ExchangeAdd32, CORINFO_INTRINSIC_InterlockedXAdd32)
FCIntrinsicSig("ExchangeAdd", &gsig_SM_RefLong_Long_RetLong, COMInterlocked::ExchangeAdd64, CORINFO_INTRINSIC_InterlockedXAdd64)
- FCFuncElement("_Exchange", COMInterlocked::ExchangeGeneric)
- FCFuncElement("_CompareExchange", COMInterlocked::CompareExchangeGeneric)
-
FCIntrinsic("MemoryBarrier", COMInterlocked::FCMemoryBarrier, CORINFO_INTRINSIC_MemoryBarrier)
QCFuncElement("_MemoryBarrierProcessWide", COMInterlocked::MemoryBarrierProcessWide)
FCFuncEnd()