rvolosatovs opened PR #11068 from rvolosatovs:fix/no-gc-backtrace to bytecodealliance:main:
This is something I've discovered profiling a Wasmtime embedding with
wasm32-unknown-unknownmodules. Currently,gc_runtimeaccessor returns ananyhow::Result, which triggers a backtrace collection, whengcis disabled (e.g. whengcfeature is not set)With
gcfeature disabled:
https://share.firefox.dev/3FTmlgN (note theanyhow::error::msgand related_Unwind_IteratePhdrCallback)With
gc,gc-null,gc-drcfeatures enabled:
https://share.firefox.dev/3HGyEh5To alleviate this, return an
Optionfrom the accessor, since in most cases, it's used as anOptionanyway and there is only one case when error is returned when it is not set
rvolosatovs requested pchickey for a review on PR #11068.
rvolosatovs requested wasmtime-core-reviewers for a review on PR #11068.
alexcrichton submitted PR review.
alexcrichton commented on PR #11068:
Thanks!
alexcrichton merged PR #11068.
Last updated: Dec 06 2025 at 06:05 UTC