未验证 提交 a5c1c571 编写于 作者: O openharmony_ci 提交者: Gitee

!1029 add mallopt ohos_config related macro definitions

Merge pull request !1029 from wonghiu45/ohos_config
......@@ -19,6 +19,12 @@ extern "C" {
#define M_DELAYED_FREE_ENABLE 1
#define M_DELAYED_FREE_DISABLE 0
#define M_OHOS_CONFIG -1004
#define M_DISABLE_OPT_TCACHE 100
#define M_ENABLE_OPT_TCACHE 101
#define M_TCACHE_PERFORMANCE_MODE 102
#define M_TCACHE_NORMAL_MODE 103
void *malloc (size_t);
void *calloc (size_t, size_t);
void *realloc (void *, size_t);
......
......@@ -60,6 +60,12 @@ void malloc_stats_print(void (*write_cb) (void *, const char *), void *cbopaque,
#define M_DELAYED_FREE_ENABLE 1
#define M_DELAYED_FREE_DISABLE 0
#define M_OHOS_CONFIG -1004
#define M_DISABLE_OPT_TCACHE 100
#define M_ENABLE_OPT_TCACHE 101
#define M_TCACHE_PERFORMANCE_MODE 102
#define M_TCACHE_NORMAL_MODE 103
int mallopt(int param, int value);
ssize_t malloc_backtrace(void* pointer, uintptr_t* frames, size_t frame_count);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册