From fd2b5e0a7e61ad0a04c58a2482498880eeae18d1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 8 May 2026 19:35:46 +0000 Subject: [PATCH] Fix System.Thread namespace to System.Threading.Thread in Memory-model.md Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/0e9d093e-4ed5-4fe6-9018-c8bcbad7e381 Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com> --- docs/design/specs/Memory-model.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/design/specs/Memory-model.md b/docs/design/specs/Memory-model.md index 28aeb475f1ec7f..b213fe9803a194 100644 --- a/docs/design/specs/Memory-model.md +++ b/docs/design/specs/Memory-model.md @@ -73,7 +73,7 @@ The effects of ordinary reads and writes can be reordered as long as that preser Operations with acquire semantics: - IL load instructions with `volatile.` prefix when instruction supports such prefix - `System.Threading.Volatile.Read` - - `System.Thread.VolatileRead` + - `System.Threading.Thread.VolatileRead` - `System.Threading.Volatile.ReadBarrier` (applies to all prior reads) - Acquiring a lock (`System.Threading.Monitor.Enter` or entering a synchronized method, applies to all prior reads) @@ -81,7 +81,7 @@ The effects of ordinary reads and writes can be reordered as long as that preser Operations with release semantics: - IL store instructions with `volatile.` prefix when such prefix is supported - `System.Threading.Volatile.Write` - - `System.Thread.VolatileWrite` + - `System.Threading.Thread.VolatileWrite` - `System.Threading.Volatile.WriteBarrier` (applies to all following writes) - Releasing a lock (`System.Threading.Monitor.Exit` or leaving a synchronized method, applies to all following writes) @@ -101,7 +101,7 @@ It may be possible for an optimizing compiler to prove that some data is accessi * **Full-fence operations** Full-fence operations have "full-fence semantics" - effects of reads and writes must be observable no later or no earlier than a full-fence operation according to their relative program order. Operations with full-fence semantics: - - `System.Thread.MemoryBarrier` + - `System.Threading.Thread.MemoryBarrier` - `System.Threading.Interlocked` methods ## C# `volatile` feature