diff options
author | Clément Chigot <chigot.c@gmail.com> | 2020-06-09 11:36:01 +0200 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-06-12 16:30:53 -0700 |
commit | 75452d68672ff7da6e5a167924b6aeb07b5b2ed1 (patch) | |
tree | f5a4a8b9f48735f747aac1a450e7f6bbed650b4c /libgo/go/runtime/malloc.go | |
parent | 309a6c468f394cf93837f5b3dcfb975206a98b92 (diff) | |
download | gcc-75452d68672ff7da6e5a167924b6aeb07b5b2ed1.zip gcc-75452d68672ff7da6e5a167924b6aeb07b5b2ed1.tar.gz gcc-75452d68672ff7da6e5a167924b6aeb07b5b2ed1.tar.bz2 |
runtime: fix arenaBaseOffset for aix/ppc
The arenaBaseOffset modifications was aimed only for aix/ppc64.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/237038
Diffstat (limited to 'libgo/go/runtime/malloc.go')
-rw-r--r-- | libgo/go/runtime/malloc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/runtime/malloc.go b/libgo/go/runtime/malloc.go index 266f5eb..6df7eaa 100644 --- a/libgo/go/runtime/malloc.go +++ b/libgo/go/runtime/malloc.go @@ -312,7 +312,7 @@ const ( // // On other platforms, the user address space is contiguous // and starts at 0, so no offset is necessary. - arenaBaseOffset = sys.GoarchAmd64*(1<<47) + (^0x0a00000000000000+1)&uintptrMask*sys.GoosAix + arenaBaseOffset = sys.GoarchAmd64*(1<<47) + (^0x0a00000000000000+1)&uintptrMask*sys.GoosAix*sys.GoarchPpc64 // Max number of threads to run garbage collection. // 2, 3, and 4 are all plausible maximums depending |