aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/runtime/runtime_unix_heap.go
blob: 14168f4387c56d53be04653947553ca2ff76db5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// +build darwin linux,!baremetal freebsd,!baremetal
// +build !nintendoswitch

// +build gc.conservative gc.leaking

package runtime

const heapSize = 1 * 1024 * 1024 // 1MB to start

var heapStart, heapEnd uintptr

func preinit() {
	heapStart = uintptr(malloc(heapSize))
	heapEnd = heapStart + heapSize
}