提交 0ed18374 编写于 作者: C ChenJie

Add dfx interfaces for Jemalloc

Issue: #I67YBJ
Test: Build & Boot devices
Signed-off-by: NChenJie <chenjie174@huawei.com>
上级 2a11c0ee
......@@ -262,14 +262,14 @@ struct mallinfo2 mallinfo2(void)
{
#ifdef USE_JEMALLOC_DFX_INTF
struct mallinfo info = je_mallinfo();
struct mallinfo2 ret = {
struct mallinfo2 res = {
.hblks = info.hblks,
.hblkhd = info.hblkhd,
.usmblks = info.usmblks,
.uordblks = info.uordblks,
.fordblks = info.fordblks,
};
return ret;
return res;
#elif defined(MUSL_ITERATE_AND_STATS_API)
malloc_disable();
malloc_stats_t shared_stats = {0, 0, 0, 0};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册