mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Updated CompilerOptimizations (markdown)
parent
8e77f6b1e6
commit
9b72758a61
@ -36,7 +36,7 @@ decisions for the gc toolchain.
|
||||
|
||||
### Escape analysis
|
||||
|
||||
Gc compiler does global escape analysis across function and package boundaries. However, there are lots of cases where it gives up. For example, anything assigned to any indirection (`*p = ...`; `a[i] = ...`) is considered escaped. Other things that can inhibit analysis are: function calls, package boundaries, slice literals, subslicing and indexing, etc. Full rules are too complex to describe, so check the `-m` output.
|
||||
Gc compiler does global escape analysis across function and package boundaries. However, there are lots of cases where it gives up. For example, anything assigned to any kind of indirection (`*p = ...`) is considered escaped. Other things that can inhibit analysis are: function calls, package boundaries, slice literals, subslicing and indexing, etc. Full rules are too complex to describe, so check the `-m` output.
|
||||
|
||||
* **gc:** 1.0+
|
||||
* **gccgo:** not yet.
|
||||
|
Loading…
x
Reference in New Issue
Block a user