72 references to MemoryBarrier
dotnet-svcutil-lib (17)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (6)
154Interlocked.MemoryBarrier(); 312Interlocked.MemoryBarrier(); 341Interlocked.MemoryBarrier(); 1081Interlocked.MemoryBarrier(); 1217Interlocked.MemoryBarrier(); 1315Interlocked.MemoryBarrier();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (5)
367Interlocked.MemoryBarrier(); 489Interlocked.MemoryBarrier(); 518Interlocked.MemoryBarrier(); 552Interlocked.MemoryBarrier(); 844Interlocked.MemoryBarrier();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\EnumDataContract.cs (1)
327Interlocked.MemoryBarrier();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (2)
294Interlocked.MemoryBarrier(); 324Interlocked.MemoryBarrier();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlDataContract.cs (2)
186Interlocked.MemoryBarrier(); 287Interlocked.MemoryBarrier();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (1)
1190Interlocked.MemoryBarrier();
Microsoft.CodeAnalysis (2)
Compilation\CommonModuleCompilationState.cs (1)
22Interlocked.MemoryBarrier();
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
633Interlocked.MemoryBarrier();
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
633Interlocked.MemoryBarrier();
Microsoft.CodeAnalysis.Collections.Package (1)
RoslynImmutableInterlocked.cs (1)
633Interlocked.MemoryBarrier();
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
633Interlocked.MemoryBarrier();
Microsoft.CodeAnalysis.Threading.Package (1)
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
633Interlocked.MemoryBarrier();
Microsoft.CodeAnalysis.Workspaces (1)
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
633Interlocked.MemoryBarrier();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
633Interlocked.MemoryBarrier();
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentBag.cs (1)
626Interlocked.MemoryBarrier(); // prevent reads of _currentOp from moving before writes to _frozen
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEngine.Unix.cs (1)
292Interlocked.MemoryBarrier();
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueueSegment.cs (1)
202Interlocked.MemoryBarrier();
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (1)
833Interlocked.MemoryBarrier();
src\libraries\System.Private.CoreLib\src\System\Threading\Interlocked.cs (3)
715/// the call to <see cref="MemoryBarrier"/> execute after memory accesses that follow the call to <see cref="MemoryBarrier"/>. 718public static void MemoryBarrier() => MemoryBarrier();
src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
559public static void MemoryBarrier() => Interlocked.MemoryBarrier();
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (4)
969Interlocked.MemoryBarrier(); 1026Interlocked.MemoryBarrier(); 1038Interlocked.MemoryBarrier(); 1476Interlocked.MemoryBarrier(); // ensure that an old cached value is not read below
System.Private.DataContractSerialization (19)
System\Runtime\Serialization\ClassDataContract.cs (6)
93Interlocked.MemoryBarrier(); 206Interlocked.MemoryBarrier(); 240Interlocked.MemoryBarrier(); 955Interlocked.MemoryBarrier(); 1094Interlocked.MemoryBarrier(); 1219Interlocked.MemoryBarrier();
System\Runtime\Serialization\CollectionDataContract.cs (5)
223Interlocked.MemoryBarrier(); 290Interlocked.MemoryBarrier(); 324Interlocked.MemoryBarrier(); 369Interlocked.MemoryBarrier(); 705Interlocked.MemoryBarrier();
System\Runtime\Serialization\EnumDataContract.cs (1)
277Interlocked.MemoryBarrier();
System\Runtime\Serialization\Json\JsonClassDataContract.cs (2)
48Interlocked.MemoryBarrier(); 79Interlocked.MemoryBarrier();
System\Runtime\Serialization\Json\JsonCollectionDataContract.cs (3)
48Interlocked.MemoryBarrier(); 85Interlocked.MemoryBarrier(); 116Interlocked.MemoryBarrier();
System\Runtime\Serialization\XmlDataContract.cs (2)
107Interlocked.MemoryBarrier(); 195Interlocked.MemoryBarrier();
System.Security.Cryptography (1)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9SigningTime.cs (1)
56Interlocked.MemoryBarrier();
System.Security.Cryptography.Pkcs (2)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9SigningTime.cs (1)
56Interlocked.MemoryBarrier();
System\Security\Cryptography\Pkcs\KeyAgreeRecipientInfo.cs (1)
66Interlocked.MemoryBarrier();
System.Text.Json (4)
System\Text\Json\Nodes\JsonArray.cs (2)
321Interlocked.MemoryBarrier(); 338Interlocked.MemoryBarrier();
System\Text\Json\Nodes\JsonObject.IDictionary.cs (2)
231Interlocked.MemoryBarrier(); 257Interlocked.MemoryBarrier();
System.Threading.Tasks.Dataflow (5)
Internal\SourceCore.cs (3)
389Interlocked.MemoryBarrier(); // ensure the read of _taskForOutputProcessing doesn't move up before the writes in Enqueue 444Interlocked.MemoryBarrier(); // ensure the read of _taskForOutputProcessing doesn't move up before the writes in Enqueue 855Interlocked.MemoryBarrier(); // synchronize with AddMessage(s) and its read of _taskForOutputProcessing
Internal\SpscTargetCore.cs (2)
94Interlocked.MemoryBarrier(); // ensure the read of _activeConsumer doesn't move up before the writes in Enqueue 150Interlocked.MemoryBarrier(); // ensure the read of _activeConsumer doesn't move up before the writes in Enqueue
System.Transactions.Local (4)
System\Transactions\Enlistment.cs (1)
215Interlocked.MemoryBarrier();
System\Transactions\Transaction.cs (1)
778Interlocked.MemoryBarrier();
System\Transactions\TransactionTable.cs (2)
625Interlocked.MemoryBarrier(); // This data must be written before the transaction 667Interlocked.MemoryBarrier();