mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-14 07:53:40 +00:00
run init in a goroutine
This commit is contained in:
@@ -22,6 +22,10 @@ func postinit() {}
|
||||
|
||||
//export _start
|
||||
func _start() {
|
||||
// These need to be initialized early so that the heap can be initialized.
|
||||
heapStart = uintptr(unsafe.Pointer(&heapStartSymbol))
|
||||
heapEnd = uintptr(wasm_memory_size(0) * wasmPageSize)
|
||||
|
||||
run()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user