mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
per https://github.com/golang/go/issues/19348, mid-stack inlining is possible since go1.13
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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user