aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mpagealloc_64bit.go
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2019-11-07 02:54:50 +0000
committerMichael Knyszek <mknyszek@google.com>2019-11-07 15:51:45 +0000
commit947f8504d950648fc1a291925bce142ddfc3b4fa (patch)
tree3abe7a7aa198819f26c1d65b36ddbf115b123ae0 /src/runtime/mpagealloc_64bit.go
parentf7d0a4212167bf15d64fbcfb5587f3c5636e1874 (diff)
downloadgo-947f8504d950648fc1a291925bce142ddfc3b4fa.tar.xz
runtime: map reserved memory as NORESERVE on solaris
This changes makes it so that sysReserve, which creates a PROT_NONE mapping, maps that memory as NORESERVE. Before this change, relatively large PROT_NONE mappings could cause fork to fail with ENOMEM, reported as "not enough space". Presumably this refers to swap space, since adding this flag causes the failures to go away. This helps unblock page allocator work, since it allows us to make large PROT_NONE mappings on solaris safely. Updates #35112. Change-Id: Ic3cba310c626e93d5db0f27269e2569bb7bc393e Reviewed-on: https://go-review.googlesource.com/c/go/+/205759 Run-TryBot: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/mpagealloc_64bit.go')
0 files changed, 0 insertions, 0 deletions