commit | 538ab54ba952cc4c7c705fa213fbf7993c97c175 | [log] [tgz] |
---|---|---|
author | Tobias Klauser <tklauser@distanz.ch> | Mon May 07 11:54:54 2018 +0200 |
committer | Tobias Klauser <tobias.klauser@gmail.com> | Wed Jun 06 11:15:58 2018 +0000 |
tree | 77caa6efe3e8b4de2f1dfcce3e47d4b87cb65bd7 | |
parent | c11f84a56e43e20a78cee75a7c034031ecf57d1f [diff] |
cpu: introduce and export type CacheLinePad Add a CacheLinePad struct type that has a size of cacheLineSize. This can be used for padding structs in order to avoid false sharing. Fixes golang/go#25203 Change-Id: I6b6daf91ea0e9c50428ffa053035429c3921b461 Reviewed-on: https://go-review.googlesource.com/111775 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This repository holds supplemental Go packages for low-level interactions with the operating system.
The easiest way to install is to run go get -u golang.org/x/sys
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/sys
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the sys repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/sys:” in the subject line, so it is easy to find.