mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:07:46 +00:00
LibWasm: Use AK::StackInfo to track stack size
This way, we can make sure that it doesn't overflow when ASAN is enabled.
This commit is contained in:
parent
8ae425cec8
commit
65355c388b
3 changed files with 5 additions and 2 deletions
|
@ -38,7 +38,7 @@ static constexpr auto page_size = 64 * KiB;
|
|||
|
||||
// Implementation-defined limits
|
||||
// These are not concretely defined by the spec, so the values are only defined by us.
|
||||
static constexpr auto max_allowed_call_stack_depth = 512;
|
||||
static constexpr auto minimum_stack_space_to_keep_free = 256 * KiB; // Note: Value is arbitrary and chosen by testing with ASAN
|
||||
static constexpr auto max_allowed_executed_instructions_per_call = 256 * 1024 * 1024;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue