!10068 asan hangs on the backtrace

Merge pull request !10068 from 任堂宇/master
This commit is contained in:
openharmony_ci 2024-11-02 11:43:17 +00:00 committed by Gitee
commit 6540e94132
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -108,7 +108,7 @@ uintptr_t EcmaHandleScope::NewHandle(JSThread *thread, JSTaggedType value)
LOG_ECMA(INFO) << "New handle in scope count:" << context->handleScopeCount_
<< ", time:" << totalSpentTime << "ms";
std::ostringstream stack;
Backtrace(stack, true);
Backtrace(stack);
LOG_ECMA(INFO) << stack.str();
}
}
@ -146,7 +146,7 @@ uintptr_t EcmaHandleScope::NewPrimitiveHandle(JSThread *thread, JSTaggedType val
LOG_ECMA(INFO) << "New primitiveHandle in scope count:" << context->primitiveScopeCount_
<< ", time:" << totalSpentTime << "ms";
std::ostringstream stack;
Backtrace(stack, true);
Backtrace(stack);
LOG_ECMA(INFO) << stack.str();
}
}