diff options
author | Austin Clements <austin@google.com> | 2016-07-18 12:24:02 -0400 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2016-09-06 21:05:53 +0000 |
commit | 6dda7b2f5fb675a2747fea5ae020248245b8903f (patch) | |
tree | 77629c710cf45e34a80ed829b3e18eb151b8e3a7 /src/syscall/syscall_netbsd_amd64.go | |
parent | 276a52de55fb48c4e56a778f1f7cac9292d8fad7 (diff) | |
download | go-git-6dda7b2f5fb675a2747fea5ae020248245b8903f.tar.gz |
runtime: don't hard-code physical page size
Now that the runtime fetches the true physical page size from the OS,
make the physical page size used by heap growth a variable instead of
a constant. This isn't used in any performance-critical paths, so it
shouldn't be an issue.
sys.PhysPageSize is also renamed to sys.DefaultPhysPageSize to make it
clear that it's not necessarily the true page size. There are no uses
of this constant any more, but we'll keep it around for now.
Updates #12480 and #10180.
Change-Id: I6c23b9df860db309c38c8287a703c53817754f03
Reviewed-on: https://go-review.googlesource.com/25022
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
Diffstat (limited to 'src/syscall/syscall_netbsd_amd64.go')
0 files changed, 0 insertions, 0 deletions