From 977e23a70766f8d0801e43bbfb68136bf54a84b7 Mon Sep 17 00:00:00 2001
From: Russ Cox
-First, any implementation can, upon detecting a data race,
+Any implementation can, upon detecting a data race,
report the race and halt execution of the program.
Implementations using ThreadSanitizer
(accessed with âgo
build
-race
â)
@@ -229,7 +229,18 @@ do exactly this.
-Otherwise, a read r of a memory location x +A read of an array, struct, or complex number +may by implemented as a read of each individual sub-value +(array element, struct field, or real/imaginary component), +in any order. +Similarly, a write of an array, struct, or complex number +may be implemented as a write of each individual sub-value, +in any order. +
+ ++A read r of a memory location x +holding a value that is not larger than a machine word must observe some write w such that r does not happen before w and there is no write w' such that w happens before w' -- 2.44.0