From 942ce2162dd8679aea50ae075ae46ffa7cfed9fa Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 28 Apr 2025 20:35:59 +0200 Subject: [PATCH] LibJS: Mark stack overflow path in run_bytecode() [[unlikely]] --- Libraries/LibJS/Bytecode/Interpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibJS/Bytecode/Interpreter.cpp b/Libraries/LibJS/Bytecode/Interpreter.cpp index ac8bbe5e25a..372d086db47 100644 --- a/Libraries/LibJS/Bytecode/Interpreter.cpp +++ b/Libraries/LibJS/Bytecode/Interpreter.cpp @@ -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(ErrorType::CallStackSizeExceeded).value(); return; }