mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 21:13:39 +00:00
runtime: only allocate heap memory when needed
For example, with -gc=none and -gc=leaking, no heap needs to be allocated when initializing the runtime. And some GCs (like -gc=custom) are responsible for allocating the heap themselves.
This commit is contained in:
committed by
Ron Evans
parent
5282b4efac
commit
a4cbe3326e
@@ -36,6 +36,8 @@ import (
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
const needsStaticHeap = false
|
||||
|
||||
// initHeap is called when the heap is first initialized at program start.
|
||||
func initHeap()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user