diff options
author | mikedn <onemihaid@hotmail.com> | 2018-01-28 20:58:58 +0200 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-01-28 10:58:58 -0800 |
commit | e3562c9bcc92ec04eec97cf1a945e7ea6d5234d2 (patch) | |
tree | ebda9d8f4bd5b3bd17eb49da0fda64e920923c06 /src/vm/ecalllist.h | |
parent | 256b05fae0d8e7a95235212064463b2ebbcc8f0f (diff) | |
download | coreclr-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.h | 3 |
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() |