Created
April 13, 2022 16:27
-
-
Save BruceChen7/a86f1c24d836443499b86fa1d5120e54 to your computer and use it in GitHub Desktop.
#golang#gc#memory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// go build -gcflags="-m"` | |
// 可以进行逃逸分析 | |
package main | |
func main() { | |
var m = make([]int, 10240) | |
println(m[0]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment