]> Cypherpunks repositories - gostls13.git/commit
runtime: define darwin/arm64's address space as 33 bits
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 6 Nov 2019 23:56:03 +0000 (23:56 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 7 Nov 2019 02:33:31 +0000 (02:33 +0000)
commit198f0452b0292eb245bb5122510b1dfd0050dacc
tree05be04599e2c045b66fe9110826e10d8d8dd0700
parente3a7d6c29757fd81c753b0e6267936c839e972c3
runtime: define darwin/arm64's address space as 33 bits

On iOS, the address space is not 48 bits as one might believe, since
it's arm64 hardware. In fact, all pointers are truncated to 33 bits, and
the OS only gives applications access to the range [1<<32, 2<<32).

While today this has no effect on the Go runtime, future changes which
care about address space size need this to be correct.

Updates #35112.

Change-Id: Id518a2298080f7e3d31cf7d909506a37748cc49a
Reviewed-on: https://go-review.googlesource.com/c/go/+/205758
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/malloc.go