You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This validates with --enable-gc --enable-shared-everything --enable-reference-types: GC for structs, shared-all for the new atomic operation there, and references as a dependency of GC. However, adding --heap2local will cause an atomic.fence to be emitted, and that requires --enable-threads, so this errors:
$ wasm-opt w.wasm --enable-gc --enable-shared-everything --enable-reference-types --heap2local
[wasm-validator error in function 0] unexpected false: Atomic operations require threads [--enable-threads], on
(atomic.fence)
Fatal: error after opts
Should struct.atomic.* require --enable-threads? Or is this intentionally separate, and so we should avoid emitting atomic.fence here? @tlively
The text was updated successfully, but these errors were encountered:
Without this, it is invalid to lower them to simpler atomic operations like
atomic.fence (as some passes do) or linear memory atomics (as a future
lowering pass might do).
Fixes#7184
This validates with
--enable-gc --enable-shared-everything --enable-reference-types
: GC for structs, shared-all for the new atomic operation there, and references as a dependency of GC. However, adding--heap2local
will cause anatomic.fence
to be emitted, and that requires--enable-threads
, so this errors:Should
struct.atomic.*
require--enable-threads
? Or is this intentionally separate, and so we should avoid emittingatomic.fence
here? @tlivelyThe text was updated successfully, but these errors were encountered: