]> Cypherpunks repositories - gostls13.git/commit
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, 5 Mar 2025 23:02:38 +0000 (15:02 -0800)
commitcad4dca518a3a984bfd6b19ee304a59f51937fd8
tree60124a69d18ab11eb6708851459b897f2d643f07
parent9189921e4759055141b51fdbb8b7b69ee4fdd477
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 #72090

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>
src/cmd/compile/internal/inline/inl.go
test/fixedbugs/issue72090.go [new file with mode: 0644]