summaryrefslogtreecommitdiff
path: root/doc/go1.12.html
diff options
context:
space:
mode:
authorKeith Randall <khr@google.com>2019-01-22 13:44:32 -0800
committerKeith Randall <khr@golang.org>2019-01-28 19:53:34 +0000
commitc53aecaaeaf8992bf8cafa7c8729228d7e4d2fee (patch)
tree49fcc32e839333d7a8aed791b69fec4bcd5f5b19 /doc/go1.12.html
parent447965d4e008764a8635df6ca7d5d2e59c6d4229 (diff)
downloadgo-git-c53aecaaeaf8992bf8cafa7c8729228d7e4d2fee.tar.gz
doc: describe change to eliminate method expression wrappers from stack traces
Change-Id: I824b42a1c1fdcee8712681ffc6316470761be065 Reviewed-on: https://go-review.googlesource.com/c/159858 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'doc/go1.12.html')
-rw-r--r--doc/go1.12.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/go1.12.html b/doc/go1.12.html
index dddf44b520..c34b473a39 100644
--- a/doc/go1.12.html
+++ b/doc/go1.12.html
@@ -232,6 +232,23 @@ for {
</pre>
</p>
+<p><!-- CL 153477 -->
+ Wrappers generated by the compiler to implement method expressions
+ are no longer reported
+ by <a href="/pkg/runtime/#CallersFrames"><code>runtime.CallersFrames</code></a>
+ and <a href="/pkg/runtime/#Stack"><code>runtime.Stack</code></a>. They
+ are also not printed in panic stack traces.
+
+ This change aligns the <code>gc</code> toolchain to match
+ the <code>gccgo</code> toolchain, which already elided such wrappers
+ from stack traces.
+
+ Clients of these APIs might need to adjust for the missing
+ frames. For code that must interoperate between 1.11 and 1.12
+ releases, you can replace the method expression <code>x.M</code>
+ with the function literal <code>func (...) { x.M(...) } </code>.
+</p>
+
<p><!-- CL 144340 -->
The compiler now accepts a <code>-lang</code> flag to set the Go language
version to use. For example, <code>-lang=go1.8</code> causes the compiler to