| Index: src/wasm/wasm-limits.h
|
| diff --git a/src/wasm/wasm-limits.h b/src/wasm/wasm-limits.h
|
| index c2ecf616573519f6004888f4f5c86a965dc5d2bf..5d62500b4135a7568698aa2524a26f4a26f9d758 100644
|
| --- a/src/wasm/wasm-limits.h
|
| +++ b/src/wasm/wasm-limits.h
|
| @@ -22,7 +22,9 @@ constexpr size_t kV8MaxWasmExports = 100000;
|
| constexpr size_t kV8MaxWasmGlobals = 1000000;
|
| constexpr size_t kV8MaxWasmDataSegments = 100000;
|
| // Don't use this limit directly, but use the value of FLAG_wasm_max_mem_pages.
|
| -constexpr size_t kV8MaxWasmMemoryPages = 16384; // = 1 GiB
|
| +// Current limit mimics the maximum allowed allocation on an ArrayBuffer
|
| +// (2GiB - 1 page).
|
| +constexpr size_t kV8MaxWasmMemoryPages = 32767; // ~ 2 GiB
|
| constexpr size_t kV8MaxWasmStringSize = 100000;
|
| constexpr size_t kV8MaxWasmModuleSize = 1024 * 1024 * 1024; // = 1 GiB
|
| constexpr size_t kV8MaxWasmFunctionSize = 128 * 1024;
|
|
|