commit | a45f55524b7ec57890cfa6c6bc06b47f877be0d1 | [log] [tgz] |
---|---|---|
author | Joe Richey joerichey@google.com <joerichey@google.com> | Wed Sep 06 15:16:59 2017 -0700 |
committer | Ian Lance Taylor <iant@golang.org> | Thu Sep 07 22:11:50 2017 +0000 |
tree | 6c73b3923d2b6da978e1bd74998d573eddfc58a5 | |
parent | 31e1fafe95477f4b363cd65f747164c51ead0cd8 [diff] |
unix: defer Getpagesize() to runtime In general, page size is not a function of the archetecture. This was addressed in the Go standard library here: https://go-review.googlesource.com/25051 This change simply defers to the standard library "syscall" package, which in turn defers to the runtime. This helps in addressing golang/go#10180 and also fixes a bug on ppc64. Currently, we return 65536 as the page size on ppc64, but the kernel supports 4k and 64k sizes, see here: http://elixir.free-electrons.com/linux/v4.13/source/arch/powerpc/include/asm/page.h#L24 Now that various page size calculations are not needed, various components are now dead code and can also be removed. This CL reverts: https://go-review.googlesource.com/14483 and part of: https://go-review.googlesource.com/30755 Change-Id: I9d7a2d96359054e0dca9c985b026c8072b2eeaf3 Reviewed-on: https://go-review.googlesource.com/62111 Reviewed-by: Austin Clements <austin@google.com> Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>