]> Cypherpunks repositories - gostls13.git/commit
runtime: test change to adapt to new inliner
authorThan McIntosh <thanm@google.com>
Mon, 14 Aug 2023 13:41:43 +0000 (09:41 -0400)
committerThan McIntosh <thanm@google.com>
Fri, 8 Sep 2023 23:04:18 +0000 (23:04 +0000)
commit3997fb924376bf0262a8108c916132329700dbf0
tree5e35fd7f09d2802635c8aaaa4946994f3973ac5f
parent746f7e17449c82e58e33ea8f9b61107cff0317f2
runtime: test change to adapt to new inliner

The new inliner tries to de-prioritize inlining of call sites on panic
paths, e.g. for a call such as the one to "foo" below, the inliner
will use a much lower size threshold when deciding whether to inline,
since the path is very likely to be "cold".

   if mumble() {
      foo()           <<-- here
      panic("bad")
   }

This patch reworks one of the traceback tests is relying on the old
inliner's "inline F everywhere if F inlinable" strategy by tweaking
the code slightly (no change in test functionality).

Change-Id: I83a686b0cc4d94a6cfc63d1e84e45455c1afd5b9
Reviewed-on: https://go-review.googlesource.com/c/go/+/519196
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/runtime/traceback_test.go