File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -464,7 +464,9 @@ inline void *WasmBase::allocMemory(uint64_t size, uint64_t *address) {
464
464
// logging (stdout/stderr)
465
465
" wasi_unstable.fd_write" , " wasi_snapshot_preview1.fd_write" ,
466
466
// time
467
- " wasi_unstable.clock_time_get" , " wasi_snapshot_preview1.clock_time_get" });
467
+ " wasi_unstable.clock_time_get" , " wasi_snapshot_preview1.clock_time_get" ,
468
+ // go runtime gc sleep
469
+ " wasi_unstable.poll_oneoff" });
468
470
Word a = malloc_ (vm_context (), size);
469
471
wasm_vm_->setRestrictedCallback (false );
470
472
if (!a.u64_ ) {
Original file line number Diff line number Diff line change @@ -417,7 +417,8 @@ void WasmBase::startVm(ContextBase *root_context) {
417
417
// Go runtime initialization
418
418
" wasi_unstable.fd_fdstat_get" , " wasi_snapshot_preview1.fd_fdstat_get" ,
419
419
" wasi_unstable.fd_fdstat_set_flags" , " wasi_snapshot_preview1.fd_fdstat_set_flags" ,
420
- " wasi_unstable.path_filestat_get" , " wasi_unstable.fd_filestat_get" });
420
+ " wasi_unstable.path_filestat_get" , " wasi_unstable.fd_filestat_get" ,
421
+ " wasi_unstable.poll_oneoff" });
421
422
if (_initialize_) {
422
423
// WASI reactor.
423
424
_initialize_ (root_context);
You can’t perform that action at this time.
0 commit comments