]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: introduce nextslicecap
authorEgon Elbre <egonelbre@gmail.com>
Wed, 17 May 2023 14:33:15 +0000 (17:33 +0300)
committerGopher Robot <gobot@golang.org>
Mon, 4 Sep 2023 17:50:50 +0000 (17:50 +0000)
commit1d84b02b228cbd35660e168d26fd2801daed08fe
tree39a5439598a3cb6481c2365654c3b0f9f3cb683f
parentc56f463412428f8a4d06bf67da9059b389c8d526
runtime: introduce nextslicecap

This allows to reuse the slice cap computation across
specialized growslice funcs.

Updates #49480

Change-Id: Ie075d9c3075659ea14c11d51a9cd4ed46aa0e961
Reviewed-on: https://go-review.googlesource.com/c/go/+/495876
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Egon Elbre <egonelbre@gmail.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/test/inl_test.go
src/runtime/slice.go