]> Cypherpunks repositories - gostls13.git/commit
runtime: add physHugePageSize
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 29 Mar 2019 20:03:29 +0000 (20:03 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 3 May 2019 18:41:45 +0000 (18:41 +0000)
commit1033065ee381da075e458de0420d0a5838e910cb
tree67d8c179614cd267be7ec060101e1a138faefe8e
parent8b2bd6f5ff3edf24b39294c7d1a86afbd1cfc4f1
runtime: add physHugePageSize

This change adds the global physHugePageSize which is initialized in
osinit(). physHugePageSize contains the system's transparent huge page
(or superpage) size in bytes.

For #30333.

Change-Id: I2f0198c40729dbbe6e6f2676cef1d57dd107562c
Reviewed-on: https://go-review.googlesource.com/c/go/+/170858
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/malloc.go
src/runtime/os_linux.go