#14318·wasmtime

Preview1 adapter still imports realtime clocks and timer polls during Go canonical allocation

Author: carsonfarmerCreated Sep 11, 2026Updated Sep 11, 2026

Go components can still trap with cannot leave component instance when garbage collection runs during cabi_realloc.

The pause introduced in #13563 covers monotonic clock reads, but GC also reads wall time and polls timers when restarting the scheduler. Those operations still call host imports, which are forbidden during cabi_realloc.

Reproduced with the Wasmtime 48.0.2 adapter and Go 1.26.3/1.27.1. The regression test fails without the fix and passes with it.

Fix: #14319. Follow-up to https://github.com/bytecodealliance/componentize-go/issues/56.

Source: bytecodealliance/wasmtime