diff options
author | Austin Clements <austin@google.com> | 2016-07-18 22:00:45 -0400 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2016-09-06 21:05:55 +0000 |
commit | 1b9499b06989d2831e5b156161d6c07642926ee1 (patch) | |
tree | d234d376074e30e9e315af495d2ed55cb86a2779 /src/syscall/syscall_netbsd_amd64.go | |
parent | 6dda7b2f5fb675a2747fea5ae020248245b8903f (diff) | |
download | go-git-1b9499b06989d2831e5b156161d6c07642926ee1.tar.gz |
syscall: make Getpagesize return page size from runtime
syscall.Getpagesize currently returns hard-coded page sizes on all
architectures (some of which are probably always wrong, and some of
which are definitely not always right). The runtime now has this
information, queried from the OS during runtime init, so make
syscall.Getpagesize return the page size that the runtime knows.
Updates #10180.
Change-Id: I4daa6fbc61a2193eb8fa9e7878960971205ac346
Reviewed-on: https://go-review.googlesource.com/25051
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/syscall/syscall_netbsd_amd64.go')
-rw-r--r-- | src/syscall/syscall_netbsd_amd64.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/syscall/syscall_netbsd_amd64.go b/src/syscall/syscall_netbsd_amd64.go index 5784db99a5..4762da3a82 100644 --- a/src/syscall/syscall_netbsd_amd64.go +++ b/src/syscall/syscall_netbsd_amd64.go @@ -4,8 +4,6 @@ package syscall -func Getpagesize() int { return 4096 } - func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) } func NsecToTimespec(nsec int64) (ts Timespec) { |