mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-07 04:23:41 +00:00
15 lines
281 B
Go
15 lines
281 B
Go
// +build darwin linux,!baremetal freebsd,!baremetal
|
|
|
|
// +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
|
|
}
|