commit | 92a0ff1e1e2f61773648454ec71ec0c0f1c700a2 | [log] [tgz] |
---|---|---|
author | Tobias Klauser <tklauser@distanz.ch> | Wed Feb 27 16:14:45 2019 +0100 |
committer | Tobias Klauser <tobias.klauser@gmail.com> | Thu Feb 28 07:16:10 2019 +0000 |
tree | c0305a881a6c61d5eeb59c36c4520eeaf833f703 | |
parent | 775f8194d0f9e65c46913c7be783d3d95a29333c [diff] |
cpu: don't panic on error reading /proc/self/auxv On Android /proc/self/auxv is not readable, leading to a panic in init. Instead of panic'ing in this case, introduce the Initialized global bool to report whether the CPU features were initialized i.e. /proc/self/auxv was successfullly read. Fixes golang/go#30413 Change-Id: Ib520f202990614a76bceb0bf9d19a88eadd13e10 Reviewed-on: https://go-review.googlesource.com/c/164057 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Ian Lance Taylor <iant@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.