mirror of
https://github.com/golang/go
synced 2024-11-19 10:44:47 -07:00
7e1b61c718
We return memory to the kernel with madvise(..., DONTNEED). Also mark returned memory with NOHUGEPAGE to keep the kernel from merging this memory into a huge page, effectively reallocating it. Only known to be a problem on linux/{386,amd64,amd64p32} at the moment. It may come up on other os/arch combinations in the future. Fixes #8832 Change-Id: Ifffc6627a0296926e3f189a8a9b6e4bdb54c79eb Reviewed-on: https://go-review.googlesource.com/5660 Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
17 lines
379 B
Go
17 lines
379 B
Go
// Copyright 2014 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package runtime
|
|
|
|
const (
|
|
thechar = '9'
|
|
_BigEndian = 1
|
|
_CacheLineSize = 64
|
|
_RuntimeGogoBytes = 72
|
|
_PhysPageSize = 65536
|
|
_PCQuantum = 4
|
|
_Int64Align = 8
|
|
hugePageSize = 0
|
|
)
|