Исходники и презентации
This commit is contained in:
11
lessons/slices_and_arrays/arrays_allocation_1/main.go
Normal file
11
lessons/slices_and_arrays/arrays_allocation_1/main.go
Normal file
@ -0,0 +1,11 @@
|
||||
package main
|
||||
|
||||
// go build -gcflags='-m' . | grep escape
|
||||
|
||||
func main() {
|
||||
var arrayWithStack [10 << 20]int8
|
||||
_ = arrayWithStack
|
||||
|
||||
var arrayWithHeap [10<<20 + 1]int8
|
||||
_ = arrayWithHeap
|
||||
}
|
||||
Reference in New Issue
Block a user