cockroachdb / apd

Arbitrary-precision decimals for Go
https://pkg.go.dev/github.com/cockroachdb/apd/v2
Apache License 2.0
664 stars 36 forks source link

apd: use gcassert to check that tmp big.Ints don't escape, add to CI #111

Closed nvanbenschoten closed 2 years ago

nvanbenschoten commented 2 years ago

This commit adds gcassert:noescape directives to bigint.go to verify that the temporary big.Int values that are intended to be stack-allocated do not escape to the heap.

The commit then adds gcassert to CI.

nvanbenschoten commented 2 years ago

TFTRs!