[PATCH] D58742: [WebAssembly] Remove uses of ThreadModel

Dan Gohman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 28 10:54:57 PST 2019


sunfish added a comment.

Wasm gives users reasons to want -mthread-model single that other architectures don't, even when -matomics is enabled by default.

When shared memory is used, wasm requires modules to declare a max memory size, which is a burden on applications that want to use dynamic amounts of memory. Wasm is more sensitive to code size than most other architectures. And, interoperating with single-threaded JS is easier from single-threaded wasm (JS has access to SharedArrayBuffer and atomics, but not all JS wants to use that).


Repository:
  rLLD LLVM Linker

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58742/new/

https://reviews.llvm.org/D58742





More information about the llvm-commits mailing list