]> Cypherpunks repositories - gostls13.git/commit
runtime: use 4 MiB heap arenas on iOS
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 16 Nov 2020 22:03:17 +0000 (22:03 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 29 Apr 2021 17:08:05 +0000 (17:08 +0000)
commite03cca64073bd1b4704482c81061d19ab019b5cc
treec94d00e50d48809aae13259777f5c77798b12103
parent5a8435d701c1c8c39f403942d4f6a0ac065635db
runtime: use 4 MiB heap arenas on iOS

iOS arm64 is a 64-bit platform but with a strictly 32-bit address space
(technically 33 bits, but the bottom half is unavailable to the
application). Since address space is limited, use 4 MiB arenas instead
of 64 MiB arenas. No changes are needed to the arena index because it's
still relatively small; this change just brings iOS more in line with
32-bit platforms.

Change-Id: I484e2d273d896fd0a57cd5c25012df0aef160290
Reviewed-on: https://go-review.googlesource.com/c/go/+/270538
Trust: Michael Knyszek <mknyszek@google.com>
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
Trust: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/runtime/malloc.go