[wasm] Fix misleading comment on supported memory size
The constant was updated in https://crrev.com/c/3328783 without updating the comment, which brought them out of sync. R=jkummerow@chromium.org No-Try: true Change-Id: I68b30aca878b5ed5a37ba39c36480d571c62f563 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3578806 Auto-Submit: Clemens Backes <clemensb@chromium.org> Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Commit-Queue: Jakob Kummerow <jkummerow@chromium.org> Cr-Commit-Position: refs/heads/main@{#79944}
This commit is contained in:
parent
5c8295beea
commit
74178a4304
@ -40,7 +40,7 @@ constexpr size_t kV8MaxWasmDataSegments = 100000;
|
||||
// Also, do not use this limit to validate declared memory, use
|
||||
// kSpecMaxMemoryPages for that.
|
||||
constexpr size_t kV8MaxWasmMemoryPages = kSystemPointerSize == 4
|
||||
? 32767 // = 2 GiB
|
||||
? 32767 // = 2 GiB - 64Kib
|
||||
: 65536; // = 4 GiB
|
||||
constexpr size_t kV8MaxWasmStringSize = 100000;
|
||||
constexpr size_t kV8MaxWasmModuleSize = 1024 * 1024 * 1024; // = 1 GiB
|
||||
|
Loading…
Reference in New Issue
Block a user