Skip to content

Commit

Permalink
per golang/go#19348, mid-stack inlining is possible since go1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Feb 14, 2020
1 parent 86fee29 commit e01d8b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CompilerOptimizations.md
Expand Up @@ -57,7 +57,7 @@ Gc compiler does global escape analysis across function and package boundaries.

### 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+
* **gccgo:** -O1 and above.
Expand Down

0 comments on commit e01d8b8

Please sign in to comment.