mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
build: enable framepointer mode by default
This has a minor performance cost, but far less than is being gained by SSA. As an experiment, enable it during the Go 1.7 beta. Having frame pointers on by default makes Linux's perf, Intel VTune, and other profilers much more useful, because it lets them gather a stack trace efficiently on profiling events. (It doesn't help us that much, since when we walk the stack we usually need to look up PC-specific information as well.) Fixes #15840. Change-Id: I4efd38412a0de4a9c87b1b6e5d11c301e63f1a2a Reviewed-on: https://go-review.googlesource.com/23451 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
2168f2a68b
commit
7fdec6216c
13 changed files with 46 additions and 29 deletions
|
|
@ -155,9 +155,6 @@ var stackLarge struct {
|
|||
free [_MHeapMap_Bits]mSpanList // free lists by log_2(s.npages)
|
||||
}
|
||||
|
||||
// Cached value of haveexperiment("framepointer")
|
||||
var framepointer_enabled bool
|
||||
|
||||
func stackinit() {
|
||||
if _StackCacheSize&_PageMask != 0 {
|
||||
throw("cache size must be a multiple of page size")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue