]> Cypherpunks repositories - gostls13.git/commit
runtime: mark all methods of atomic types with go:nosplit
authorAndy Pan <panjf2000@gmail.com>
Thu, 25 Aug 2022 17:29:57 +0000 (01:29 +0800)
committerGopher Robot <gobot@golang.org>
Fri, 26 Aug 2022 17:48:20 +0000 (17:48 +0000)
commit296c40dbbe91db993e4c756f3b2b383d6995edbc
tree4e8d654c1a25d387e8366ff8ef9143005e5d2124
parentc8bb3cff9ee24f310f4d5dd7b39422c346411a53
runtime: mark all methods of atomic types with go:nosplit

Atomic types may be used anywhere in the runtime,
so they must omit its usual stack overflow checks to avoid errors from stack splits.

Change-Id: Icb497334c860bcaa284a2d5a3edc47ee89844301
Reviewed-on: https://go-review.googlesource.com/c/go/+/425484
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/internal/atomic/types.go
src/runtime/internal/atomic/types_64bit.go