From ad09a6abaa7e37a483107a29d50c0e9b0eff6776 Mon Sep 17 00:00:00 2001 From: Artem Udovichenko Date: Mon, 13 Feb 2023 16:01:06 +0300 Subject: [PATCH] Suppress CSA warning in EcmaInterpreter Change-Id: I3d9c22d9cee061dffdef091f0bda54030c73c548 Signed-off-by: Artem Udovichenko --- runtime/interpreter/ecma-interpreter-inl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime/interpreter/ecma-interpreter-inl.h b/runtime/interpreter/ecma-interpreter-inl.h index 2f1a48c65..5e97cf044 100644 --- a/runtime/interpreter/ecma-interpreter-inl.h +++ b/runtime/interpreter/ecma-interpreter-inl.h @@ -478,6 +478,9 @@ public: .SetValue(this_obj.GetRawData()); // Init EcmascriptEnvironment + // CSA report ctor_func usage after GC in ThrowStackOverflowException. + // In this case control shouldn't reach this line. + // SUPPRESS_CSA_NEXTLINE(alpha.core.WasteObjHeader) ConstantPool *constant_pool = ConstantPool::Cast(ctor_func->GetConstantPool().GetHeapObject()); JSTaggedValue lexical_env = ctor_func->GetLexicalEnv(); EcmascriptEnvironment *new_env = JSFrame::GetJSEnv(this->GetFrame()); -- Gitee