Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
cmd/compile: enable mid-stack inlining #19348
Comments
davidlazar
added
the
Proposal
label
Mar 1, 2017
davidlazar
self-assigned this
Mar 1, 2017
gopherbot
commented
Mar 1, 2017
|
CL https://golang.org/cl/37231 mentions this issue. |
josharian
referenced this issue
Mar 2, 2017
Open
cmd/compile: inline forwarding thunk functions #8421
gopherbot
commented
Mar 3, 2017
|
CL https://golang.org/cl/37233 mentions this issue. |
pushed a commit
that referenced
this issue
Mar 3, 2017
pushed a commit
that referenced
this issue
Mar 3, 2017
|
This is awesome. I probably missed some discussion, but is there a design doc or proposal doc I can look at? Out of curiosity, is there a plan to emit this information as part of DWARF? It would be a nice feature if debuggers can access the |
|
There is an outdated proposal doc. I'll update and publish it this week. In the meantime, these slides give an overview of the approach: https://golang.org/s/go19inliningtalk I haven't looked at the DWARF yet, but the plan is to add inlining info to the DWARF tables before we turn on mid-stack inlining for 1.9. |
gopherbot
commented
Mar 6, 2017
|
CL https://golang.org/cl/37854 mentions this issue. |
gopherbot
commented
Mar 10, 2017
|
CL https://golang.org/cl/38090 mentions this issue. |
pushed a commit
to golang/proposal
that referenced
this issue
Mar 11, 2017
gopherbot
added this to the Proposal milestone
Mar 20, 2017
|
It seems clear we're going to do this, assuming the right tuning (not yet done!). The tuning itself doesn't have to go through the proposal process. Accepting proposal. |
rsc
added
the
Proposal-Accepted
label
Mar 27, 2017
rsc
changed the title from
proposal: mid-stack inlining in the Go compiler
to
cmd/compile: enable mid-stack inlining in the Go compiler
Mar 27, 2017
rsc
changed the title from
cmd/compile: enable mid-stack inlining in the Go compiler
to
cmd/compile: enable mid-stack inlining
Mar 27, 2017
rsc
modified the milestones:
Go1.9Maybe,
Proposal
Mar 27, 2017
pushed a commit
that referenced
this issue
Mar 29, 2017
bilokurov
commented
Apr 7, 2017
|
It seems that func Caller(skip int) in runtime/extern.go also needs to be updated for this change, as it currently calls findfunc(pc), similarly to FuncForPC. |
|
Indeed. I have a CL that updates |
mdwhatcott
referenced this issue
in smartystreets/gunit
Apr 7, 2017
Closed
failure_report.go: Go 1.9 "runtime" package API modifications #7
gopherbot
commented
Apr 10, 2017
|
CL https://golang.org/cl/40270 mentions this issue. |
added a commit
to lparth/go
that referenced
this issue
Apr 13, 2017
pushed a commit
that referenced
this issue
Apr 18, 2017
|
Is |
|
Not yet, it has high compilation costs, largely because we need to be much pickier about how we read export data. |
No. Maybe in Go 1.10. |
This was referenced Jun 14, 2017
jadbox
commented
Jun 17, 2017
|
Is the recommendation then to use "-l=4" in Go 1.9 for production builds where runtime performance is ideal? |
|
No, -l=4 is explicitly untested and unsupported for production use. If you do that and you get programs that break, you get to keep both pieces. |
anton-povarov
referenced this issue
in gogo/protobuf
Jun 19, 2017
Closed
Marshal/MarshalTo with value receiver #300
bradfitz
modified the milestones:
Go1.9Maybe,
Go1.10
Jul 20, 2017
This was referenced Jul 31, 2017
gopherbot
commented
Oct 27, 2017
|
Change https://golang.org/cl/74110 mentions this issue: |
pushed a commit
that referenced
this issue
Oct 31, 2017
|
I guess we're not going to enable this by default for Go 1.10? @aclements |
davidlazar commentedMar 1, 2017
•
Edited 1 time
-
davidlazar
Mar 11, 2017
Design doc: https://golang.org/design/19348-midstack-inlining