<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi there,<div><br></div><div>It's known that the jemalloc is adopted by Android. Recently I want to dump some jemalloc status information with the thread exit. Fortunately, the function of status dump has been done by jemalloc.</div><div><br></div><div>After tuned the variable of opt_stats_print into true in malloc_init_hard(), the stats_print_atexit() was registered as an hook for atexit(). <span style="font-size: 12pt;">But, there is nothing status information dumped when the process exit and there is only the warning on the console like below.</span></div><div><span style="font-size: 12pt;"><br></span></div><div>"W/libc    (  859): WARNING: generic atexit() called from legacy shared library"</div><div><br></div><div>So, how to dump the jemalloc status on Android?</div><div><br></div><div>Thanks.</div>                                        </div></body>
</html>