1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09:00

LibJS: Mark stack overflow path in run_bytecode() [[unlikely]]

This commit is contained in:
Andreas Kling 2025-04-28 20:35:59 +02:00 committed by Andreas Kling
parent bd9d489370
commit 942ce2162d
Notes: github-actions[bot] 2025-04-29 00:11:05 +00:00

View file

@ -371,7 +371,7 @@ NEVER_INLINE Interpreter::HandleExceptionResponse Interpreter::handle_exception(
FLATTEN_ON_CLANG void Interpreter::run_bytecode(size_t entry_point)
{
if (vm().did_reach_stack_space_limit()) {
if (vm().did_reach_stack_space_limit()) [[unlikely]] {
reg(Register::exception()) = vm().throw_completion<InternalError>(ErrorType::CallStackSizeExceeded).value();
return;
}