]> Cypherpunks repositories - gostls13.git/commit
runtime: change maxSearchAddr into a helper function
authorMatthew Dempsky <mdempsky@google.com>
Mon, 28 Mar 2022 16:30:41 +0000 (09:30 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 11 May 2022 03:28:01 +0000 (03:28 +0000)
commitccb798741b9bd9d5eda56648a8b3383e6e55cfcd
tree8b58c1891ef17f5be3efd9b2f193488b4afa21d4
parentf12461cb0f3878b6d332f4be3a02fa44cc744df6
runtime: change maxSearchAddr into a helper function

This avoids a dependency on the compiler statically initializing
maxSearchAddr, which is necessary so we can disable the (overly
aggressive and spec non-conforming) optimizations in cmd/compile and
gccgo.

Updates #51913.

Change-Id: I424e62c81c722bb179ed8d2d8e188274a1aeb7b6
Reviewed-on: https://go-review.googlesource.com/c/go/+/396194
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/mpagealloc.go
src/runtime/mpagecache.go