]> Cypherpunks repositories - gostls13.git/commit
math/big: add tests for allocation during multiply
authorRuss Cox <rsc@golang.org>
Fri, 14 Feb 2025 17:52:02 +0000 (12:52 -0500)
committerGopher Robot <gobot@golang.org>
Thu, 27 Feb 2025 14:05:02 +0000 (06:05 -0800)
commit2b737073587cb8f82d41fa96fdec9e56a5bac8ba
tree0780d669fc56c0ddb8c6afa959b207c2a2bd5d17
parent0ab2253ce1e9183c2cb94f3a594448320cb65962
math/big: add tests for allocation during multiply

Test that big.Int.Mul reusing the same target is not allocating
temporary garbage during its computation. That code is going
to be modified in an upcoming CL.

Change-Id: I3ed55c06da030282233c29cd7af2a04f395dc7a2
Reviewed-on: https://go-review.googlesource.com/c/go/+/652056
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
src/math/big/escape_test.go [new file with mode: 0644]