提交 40cf6483 编写于 作者: C Caoruihong

fix(asan): fix the deadlock issue of musl dlopen in clang asan runtime

Signed-off-by: NCaoruihong <crh.cao@huawei.com>
Change-Id: Ide90ef9ddbd5f7ed70e54682e5bde36443f734f6
上级 9040431e
...@@ -359,6 +359,13 @@ template("musl_libs") { ...@@ -359,6 +359,13 @@ template("musl_libs") {
"-fPIC", "-fPIC",
"-fno-stack-protector", "-fno-stack-protector",
] ]
if (is_asan) {
defines = [
"NSLIST_DEFAULT_SIZE=1600",
"DSOLIST_DEFAULT_SIZE=1600",
"INHERIT_DEFAULT_SIZE=1600",
]
}
deps = porting_deps deps = porting_deps
} }
......
...@@ -6,9 +6,15 @@ ...@@ -6,9 +6,15 @@
static ns_t g_ns_default; static ns_t g_ns_default;
static nslist g_ns_list; static nslist g_ns_list;
#ifndef NSLIST_DEFAULT_SIZE
#define NSLIST_DEFAULT_SIZE 16 #define NSLIST_DEFAULT_SIZE 16
#endif
#ifndef DSOLIST_DEFAULT_SIZE
#define DSOLIST_DEFAULT_SIZE 16 #define DSOLIST_DEFAULT_SIZE 16
#endif
#ifndef INHERIT_DEFAULT_SIZE
#define INHERIT_DEFAULT_SIZE 16 #define INHERIT_DEFAULT_SIZE 16
#endif
static ns_inherit_list *nsinherits_alloc() static ns_inherit_list *nsinherits_alloc()
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册