per https://github.com/golang/go/issues/19348, mid-stack inlining is possible since go1.13

lestrrat 2020-02-14 14:08:00 +09:00
parent 86fee29d70
commit e01d8b81ae

@ -57,7 +57,7 @@ Gc compiler does global escape analysis across function and package boundaries.
### Function Inlining ### Function Inlining
Only short and simple functions are inlined. To be inlined a function must contain less than ~40 expressions and does not contain complex things like function calls, loops, labels, closures, `panic`'s, `recover`'s, `select`'s, `switch`'es, etc. Only short and simple functions are inlined. To be inlined a function must contain less than ~40 expressions and does not contain complex things like loops, labels, closures, `panic`'s, `recover`'s, `select`'s, `switch`'es, etc.
* **gc:** 1.0+ * **gc:** 1.0+
* **gccgo:** -O1 and above. * **gccgo:** -O1 and above.