runtime: adapt memory management to AIX mmap
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 27 Jun 2017 22:36:48 +0000 (22:36 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 27 Jun 2017 22:36:48 +0000 (22:36 +0000)
commit7fd19291a5393d200470b8bd79de3ce21c4e4bee
treec105247981108997e8faf34d6055638c1d52e2a1
parentf9dedc3f21020bcc704fcfb7caa1b04b5dc874e7
runtime: adapt memory management to AIX mmap

    On AIX:
    * mmap does not allow to map an already mapped range,
    * mmap range start at 0x30000000 for 32 bits processes,
    * mmap range start at 0x70000000_00000000 for 64 bits processes

    This is adapted from change 37845.

    Issue golang/go#19200

    Reviewed-on: https://go-review.googlesource.com/46772

From-SVN: r249713
gcc/go/gofrontend/MERGE
libgo/go/runtime/malloc.go
libgo/go/runtime/mem_gccgo.go
libgo/runtime/runtime_c.c