We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67d78e3 commit 9369b7dCopy full SHA for 9369b7d
lld/wasm/Writer.cpp
@@ -348,7 +348,12 @@ void Writer::layoutMemory() {
348
WasmSym::heapBase->setVA(memoryPtr);
349
}
350
351
- uint64_t maxMemorySetting = 1ULL << (config->is64.value_or(false) ? 48 : 32);
+ uint64_t maxMemorySetting = 1ULL << 32;
352
+ if (config->is64.value_or(false)) {
353
+ // TODO: Update once we decide on a reasonable limit here:
354
+ // https://github.com/WebAssembly/memory64/issues/33
355
+ maxMemorySetting = 1ULL << 34;
356
+ }
357
358
if (config->initialMemory != 0) {
359
if (config->initialMemory != alignTo(config->initialMemory, WasmPageSize))
0 commit comments