From 9ee9599c3bf93b11d0daa50268611f2003dcccc3 Mon Sep 17 00:00:00 2001 From: ChenJinXin Date: Mon, 28 Jul 2025 07:33:18 +0000 Subject: [PATCH] add noinline attribute to EcmaHandleScope::NewHandle to avoid bep problem introduced by partial inline opt Signed-off-by: ChenJinXin --- ecmascript/ecma_handle_scope.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecmascript/ecma_handle_scope.cpp b/ecmascript/ecma_handle_scope.cpp index 948c468df7..009714930b 100644 --- a/ecmascript/ecma_handle_scope.cpp +++ b/ecmascript/ecma_handle_scope.cpp @@ -77,7 +77,7 @@ void EcmaHandleScope::ClosePrimitiveScope(EcmaVM *vm) } } -uintptr_t EcmaHandleScope::NewHandle(JSThread *thread, JSTaggedType value) +uintptr_t __attribute__((noinline)) EcmaHandleScope::NewHandle(JSThread *thread, JSTaggedType value) { CHECK_NO_HANDLE_ALLOC; #if ECMASCRIPT_ENABLE_THREAD_STATE_CHECK -- Gitee