1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:37:46 +00:00

LibWasm: Tweak the implementation-defined limits a bit

This commit is contained in:
Ali Mohammad Pur 2021-07-06 14:07:52 +04:30 committed by Ali Mohammad Pur
parent 5636f8143d
commit 2fc0040ceb

View file

@ -36,8 +36,9 @@ static constexpr auto extern_global_tag = 0x03;
static constexpr auto page_size = 64 * KiB; static constexpr auto page_size = 64 * KiB;
// Limits // Implementation-defined limits
static constexpr auto max_allowed_call_stack_depth = 1000; // These are not concretely defined by the spec, so the values are only defined by us.
static constexpr auto max_allowed_executed_instructions_per_call = 1024 * 1024 * 1024; static constexpr auto max_allowed_call_stack_depth = 512;
static constexpr auto max_allowed_executed_instructions_per_call = 256 * 1024 * 1024;
} }