From: Keith Randall Date: Tue, 22 Jan 2019 21:44:32 +0000 (-0800) Subject: doc: describe change to eliminate method expression wrappers from stack traces X-Git-Tag: go1.12rc1~34 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c53aecaaeaf8992bf8cafa7c8729228d7e4d2fee;p=gostls13.git 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 --- 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 {

+

+ Wrappers generated by the compiler to implement method expressions + are no longer reported + by runtime.CallersFrames + and runtime.Stack. They + are also not printed in panic stack traces. + + This change aligns the gc toolchain to match + the gccgo 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 x.M + with the function literal func (...) { x.M(...) } . +

+

The compiler now accepts a -lang flag to set the Go language version to use. For example, -lang=go1.8 causes the compiler to