]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: disable inlining functions with closures for now
authorDan Scales <danscales@google.com>
Wed, 24 Feb 2021 21:03:17 +0000 (13:03 -0800)
committerDan Scales <danscales@google.com>
Wed, 24 Feb 2021 21:34:21 +0000 (21:34 +0000)
commit8027343b6395536aa8bef8158bad8f4c290dd650
tree836afccdd9c0826eea60c9a3e0e43b2367e119b3
parent6c3f8a2f4730f005850be7fde3a3dac6dc5323a6
cmd/compile: disable inlining functions with closures for now

Added a flag '-d=inlfuncswithclosures=1' to allow inlining functions with
closures, and change the default to off for now, until #44370 is fixed.

Updates #44370.

Change-Id: Ic17723aa5c091d91f5f5004d8b63ec7125257acf
Reviewed-on: https://go-review.googlesource.com/c/go/+/296049
Run-TryBot: Dan Scales <danscales@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Dan Scales <danscales@google.com>
src/cmd/compile/internal/base/debug.go
src/cmd/compile/internal/inline/inl.go
test/closure3.go
test/inline.go