Skip to content

Commit 9c514f5

Browse files
authored
smith: Disable shared-everything-threads without GC (#1973)
* smith: Disable shared-everything-threads without GC Alternative fix from #1965 * Review comments
1 parent 897ab1f commit 9c514f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/wasm-smith/src/config.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,12 @@ impl Config {
796796
self.shared_everything_threads_enabled = false;
797797
}
798798

799+
// shared-everything-threads depends on GC, so if gc is disabled then
800+
// also disable shared-everything-threads.
801+
if !self.gc_enabled {
802+
self.shared_everything_threads_enabled = false;
803+
}
804+
799805
// If simd is disabled then disable all relaxed simd instructions as
800806
// well.
801807
if !self.simd_enabled {

0 commit comments

Comments
 (0)