File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
crates/wasmtime/src/runtime Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ impl Options {
9999
100100 // This call doesn't take any GC refs, and therefore we shouldn't ever
101101 // need to GC before entering Wasm.
102+ #[ cfg( feature = "gc" ) ]
102103 debug_assert ! ( !ReallocFunc :: need_gc_before_call_raw( store. 0 , & params) ) ;
103104
104105 // Invoke the wasm malloc function using its raw and statically known
Original file line number Diff line number Diff line change @@ -155,8 +155,8 @@ where
155155 }
156156
157157 #[ inline]
158+ #[ cfg( feature = "gc" ) ]
158159 pub ( crate ) fn need_gc_before_call_raw ( _store : & StoreOpaque , _params : & Params ) -> bool {
159- #[ cfg( feature = "gc" ) ]
160160 {
161161 // See the comment in `Func::call_impl_check_args`.
162162 let num_gc_refs = _params. vmgcref_pointing_to_object_count ( ) ;
You can’t perform that action at this time.
0 commit comments