提交 79813aad 编写于 作者: W wonghiu45

Support jemalloc 4.X

Add the compilation macro required by jemalloc 4.X

Issue: #I67O6C
Test: Build & Boot devices
Signed-off-by: Nwonghiu45 <huangxiao35@huawei.com>
Change-Id: I11aaee78c78340377587a0c2afd8415d5514ff2d
上级 cc2bc150
......@@ -241,17 +241,25 @@ template("musl_libs") {
"-U_FORTIFY_SOURCE",
"-DOHOS_ENABLE_TCACHE",
"-DOHOS_ENABLE_TCACHE", # For jemalloc 5.X
"-DJEMALLOC_TCACHE", # For jemalloc 4.X
"-DOHOS_LG_TCACHE_MAXCLASS_DEFAULT=16",
"-DOHOS_NUM_ARENAS=2",
"-DOHOS_NUM_ARENAS=2", # For jemalloc 5.X
"-DOHOS_MAX_ARENAS=2", # For jemalloc 4.X
"-DOHOS_TCACHE_NSLOTS_SMALL_MAX=8",
"-DOHOS_TCACHE_NSLOTS_LARGE=16",
]
if (musl_arch == "arm") {
cflags += [ "-march=armv7-a" ]
cflags += [
"-march=armv7-a",
"-DOHOS_LG_CHUNK_DEFAULT=19", # For jemalloc 4.X
]
} else if (musl_arch == "aarch64") {
cflags += [ "-march=armv8" ]
cflags += [
"-march=armv8",
"-DOHOS_LG_CHUNK_DEFAULT=19", # For jemalloc 4.X
]
} else if (musl_arch == "x86_64") {
cflags += [ "-march=x86-64" ]
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册