]> Cypherpunks repositories - gostls13.git/commit
runtime: eliminate false sharing on runtime.goidgen
authorDmitriy Vyukov <dvyukov@google.com>
Tue, 12 Jul 2011 05:25:14 +0000 (01:25 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 12 Jul 2011 05:25:14 +0000 (01:25 -0400)
commit013ad89c9bc5c2903c535d217af242063c797251
tree9f5e878b2cd4fba631f2bc5b41cd75524a2ee4bf
parent909f31872a0e5e5b8ec5cc49b22ae661777a2fbc
runtime: eliminate false sharing on runtime.goidgen
runtime.goidgen can be quite frequently modified and
shares cache line with the following variables,
it leads to false sharing.
50c6b0 b nfname
50c6b4 b nfunc
50c6b8 b nfunc$17
50c6bc b nhist$17
50c6c0 B runtime.checking
50c6c4 B runtime.gcwaiting
50c6c8 B runtime.goidgen
50c6cc B runtime.gomaxprocs
50c6d0 B runtime.panicking
50c6d4 B strconv.IntSize
50c6d8 B src/pkg/runtime/_xtest_.ss
50c6e0 B src/pkg/runtime/_xtest_.stop
50c6e8 b addrfree
50c6f0 b addrmem
50c6f8 b argv

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4673054
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h