[PATCH] D59343: [WebAssembly] Use passive segments when memory is shared
Thomas Lively via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 13 19:03:04 PDT 2019
tlively created this revision.
tlively added reviewers: sbc100, aheejin.
Herald added subscribers: llvm-commits, jfb, sunfish, jgravelle-google, dschuff.
Herald added a project: LLVM.
And adds corresponding memory.init instructions to initialize the
passive segments in __wasm_call_ctors. Using passive segments prevents
segments from automatically being reinitialized every time a new
WebAssembly instance is created, e.g. when creating a thread on a new
worker. Depends on D59274 <https://reviews.llvm.org/D59274>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D59343
Files:
lld/test/wasm/data-segment-merging.ll
lld/wasm/OutputSections.cpp
lld/wasm/OutputSegment.h
lld/wasm/Writer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59343.190557.patch
Type: text/x-patch
Size: 9789 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190314/6a1debee/attachment.bin>
More information about the llvm-commits
mailing list