]> Cypherpunks repositories - gostls13.git/commit
runtime: remove unused maxSliceCap function and maxElems array
authorMartin Möhrmann <moehrmann@google.com>
Tue, 23 Oct 2018 08:03:59 +0000 (10:03 +0200)
committerMartin Möhrmann <martisch@uos.de>
Tue, 23 Oct 2018 16:58:43 +0000 (16:58 +0000)
commit642792350ccd148da7b3e8a0e4e69341b222ab34
treeae4eaf1dcd12daa0be77878edb8d0a422afe1b37
parent1e50dd02a98bce8901cf10634ee0b2c8bbe4da81
runtime: remove unused maxSliceCap function and maxElems array

All uses of these have been converted to use runtime/internal/math
functions for overflow checking.

Fixes #21588

Change-Id: I0ba57028e471803dc7d445e66d77a8f87edfdafb
Reviewed-on: https://go-review.googlesource.com/c/144037
Run-TryBot: Martin Möhrmann <martisch@uos.de>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/inl_test.go
src/runtime/slice.go