From c53aecaaeaf8992bf8cafa7c8729228d7e4d2fee Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Tue, 22 Jan 2019 13:44:32 -0800 Subject: [PATCH] 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 --- doc/go1.12.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 -- 2.48.1