On Mon, Aug 17, 2020 at 12:55 PM leo.b...@npo-data.nl <leo.bal...@npo-data.nl> wrote:
> Thanks. So I take it this must be handled by the compiler when generating > assembly. > > I have peeked in the src/cmd/compile/ directory , assuming it is hidden > there, but that's a rabbit hole I do want to go in just yet. > > What I am really looking for is knowing which instructions lead to > memory-synchronisation. The specific instruction(s), if any for the particular CPU, are only the implementation detail that can change. The thing that really matters is the semantics of synchronization as described in "The Go Memory Model": https://golang.org/ref/mem -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAA40n-XShdWYvdDRKAJEFq6TQr%2B1v5Gne6zHgdvVdancycq%2Bwg%40mail.gmail.com.