]> Cypherpunks repositories - gostls13.git/commit
runtime: make example independent of inlining
authorDavid Lazar <lazard@golang.org>
Tue, 18 Apr 2017 14:47:27 +0000 (10:47 -0400)
committerDavid Lazar <lazard@golang.org>
Tue, 18 Apr 2017 19:56:36 +0000 (19:56 +0000)
commit7821be59519b65182e4399425b6e6d908252c11b
tree2a65a7850e1e1258adcf9039620069a90eebce34
parent0ea120a70c03c3c57778d6863188fdfee87cb0f9
runtime: make example independent of inlining

Otherwise, with -l=4, runtime.Callers gets inlined and the example
prints too many frames. Now the example passes with -l=4.

Change-Id: I9e420af9371724ac3ec89efafd76a658cf82bb4a
Reviewed-on: https://go-review.googlesource.com/40876
Run-TryBot: David Lazar <lazard@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/example_test.go