From c53aecaaeaf8992bf8cafa7c8729228d7e4d2fee Mon Sep 17 00:00:00 2001
From: Keith Randall
+ 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