On Fri, Sep 17, 2021 at 6:25 AM xie cui <cuiwei...@gmail.com> wrote: > > how atomic insturction work in golang at x86/amd64, > I think the atomic insturtion will flush the store buffer and invalid queue > of current cpu core, > but I am not sure, does someone know about it?
I assume that you are asking about the sync/atomic package. The functions in that package will ensure sequential consistency of atomic operationns, but they will not flush the store buffer. See https://research.swtch.com/gomm . Ian -- 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/CAOyqgcVgxdv2LYW5zcxHWdfrW710RoN%3DsABgfADsL5tVmkruUQ%40mail.gmail.com.