1
0
mirror of https://github.com/golang/go synced 2024-11-16 23:04:44 -07:00
go/doc
Russ Cox 865911424d doc: update Go memory model
Following discussion on #47141, make the following changes:

- Document Go's overall approach.
- Document that multiword races can cause crashes.
- Document happens-before for runtime.SetFinalizer.
- Document (or link to) happens-before for more sync types.
- Document happens-before for sync/atomic.
- Document disallowed compiler optimizations.

See also https://research.swtch.com/gomm for background.

Fixes #50859.

Change-Id: I17d837756a77f4d8569f263489c2c45de20a8778
Reviewed-on: https://go-review.googlesource.com/c/go/+/381315
Reviewed-by: Ian Lance Taylor <iant@google.com>
2022-06-04 18:42:07 +00:00
..
asm.html doc/asm: fix HTML markup 2021-09-10 17:15:37 +00:00
go1.17_spec.html spec: fix a broken link 2021-11-11 19:44:13 +00:00
go1.19.html doc/go1.19: remove TODO about LimitedReader 2022-06-04 16:11:54 +00:00
go_mem.html doc: update Go memory model 2022-06-04 18:42:07 +00:00
go_spec.html doc: replace tabs with spaces for alignment in code snippets 2022-05-26 23:22:37 +00:00