]> Cypherpunks repositories - gostls13.git/commit
runtime: make _MaxMem an untyped constant
authorAustin Clements <austin@google.com>
Fri, 13 Jan 2017 20:32:53 +0000 (15:32 -0500)
committerAustin Clements <austin@google.com>
Tue, 7 Feb 2017 18:39:12 +0000 (18:39 +0000)
commitefb5eae3cf1c5f9be8cc5d4c85a7314204513b4c
treef1efae1fe7ebcd59c38421d3018f33f8ed765d95
parent46085c4b3620fb3be29ea6ecc6206ffdb963f8bf
runtime: make _MaxMem an untyped constant

Currently _MaxMem is a uintptr, which is going to complicate some
further changes. Make it untyped so we'll be able to do untyped math
on it before truncating it to a uintptr.

The runtime assembly is identical before and after this change on
{linux,windows}/{amd64,386}.

Updates #18651.

Change-Id: I0f64511faa9e0aa25179a556ab9f185ebf8c9cf8
Reviewed-on: https://go-review.googlesource.com/35251
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/runtime/malloc.go