aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/defs_aix_ppc64.go
diff options
context:
space:
mode:
authorClément Chigot <clement.chigot@atos.net>2019-04-26 16:40:01 +0200
committerBrad Fitzpatrick <bradfitz@golang.org>2019-04-26 15:06:36 +0000
commitf61353f2d9fda9b5d8ae3026f815986d749d530e (patch)
treeb8c4c4bb770e38e592edc12b7583833310d7336f /src/runtime/defs_aix_ppc64.go
parent8feeada50cf3f783fe3c8113d5da51ad8c0b3014 (diff)
downloadgo-f61353f2d9fda9b5d8ae3026f815986d749d530e.tar.gz
go-f61353f2d9fda9b5d8ae3026f815986d749d530e.zip
runtime: enable runtime_mmap_test.go on AIX
AIX doesn't allow to mmap an address range which is already mmap. Therefore, once the region has been allocated, it must munmap before being able to play with it. Change-Id: I1547782f0379024f57869f1dda8c1c9bb12d831f Reviewed-on: https://go-review.googlesource.com/c/go/+/174059 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/defs_aix_ppc64.go')
-rw-r--r--src/runtime/defs_aix_ppc64.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/defs_aix_ppc64.go b/src/runtime/defs_aix_ppc64.go
index db17b90496..dccc3a5926 100644
--- a/src/runtime/defs_aix_ppc64.go
+++ b/src/runtime/defs_aix_ppc64.go
@@ -22,7 +22,7 @@ const (
_PROT_WRITE = 0x2
_PROT_EXEC = 0x4
- _MAP_ANONYMOUS = 0x10
+ _MAP_ANON = 0x10
_MAP_PRIVATE = 0x2
_MAP_FIXED = 0x100
_MADV_DONTNEED = 0x4