[PATCH] D143783: [lld][WebAssembly] Limit size of shared 64-bit memories of 2^^34
Sam Clegg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 13 12:22:59 PST 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9369b7d307be: [lld][WebAssembly] Limit size of shared 64-bit memories of 2^^34 (authored by sbc100).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143783/new/
https://reviews.llvm.org/D143783
Files:
lld/wasm/Writer.cpp
Index: lld/wasm/Writer.cpp
===================================================================
--- lld/wasm/Writer.cpp
+++ lld/wasm/Writer.cpp
@@ -348,7 +348,12 @@
WasmSym::heapBase->setVA(memoryPtr);
}
- uint64_t maxMemorySetting = 1ULL << (config->is64.value_or(false) ? 48 : 32);
+ uint64_t maxMemorySetting = 1ULL << 32;
+ if (config->is64.value_or(false)) {
+ // TODO: Update once we decide on a reasonable limit here:
+ // https://github.com/WebAssembly/memory64/issues/33
+ maxMemorySetting = 1ULL << 34;
+ }
if (config->initialMemory != 0) {
if (config->initialMemory != alignTo(config->initialMemory, WasmPageSize))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143783.497071.patch
Type: text/x-patch
Size: 658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230213/ecc3a60a/attachment.bin>
More information about the llvm-commits
mailing list