]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.24] cmd/compile: use inline-Pos-based recursion test
authorDavid Chase <drchase@google.com>
Wed, 5 Mar 2025 18:44:12 +0000 (13:44 -0500)
committerDavid Chase <drchase@google.com>
Wed, 12 Mar 2025 20:50:58 +0000 (13:50 -0700)
commitc2a34bedeeaa0c06297dacc68d6a7f6a9918a346
tree1a03827187595090838adce0a8105e0f8e211a89
parent0ace2d8aca5e99793e516ece3dfd8838f38dbcaf
[release-branch.go1.24] cmd/compile: use inline-Pos-based recursion test

Look at the inlining stack of positions for a call site,
if the line/col/file of the call site appears in that
stack, do not inline.  This subsumes all the other
recently-added recursive inlining checks, but they are
left in to make this easier+safer to backport.

Fixes #72822

Change-Id: I0f487bb0d4c514015907c649312672b7be464abd
Reviewed-on: https://go-review.googlesource.com/c/go/+/655155
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
(cherry picked from commit cad4dca518a3a984bfd6b19ee304a59f51937fd8)
Reviewed-on: https://go-review.googlesource.com/c/go/+/657075
src/cmd/compile/internal/inline/inl.go
test/fixedbugs/issue72090.go [new file with mode: 0644]