mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-08 10:47:28 +03:00
Encapsulate buffer allocation failure in buffered writer
This commit is contained in:
parent
a166c20818
commit
09cd79495f
6 changed files with 35 additions and 71 deletions
|
|
@ -3847,8 +3847,7 @@ je_malloc_stats_print(void (*write_cb)(void *, const char *), void *cbopaque,
|
|||
buf_writer_t buf_writer;
|
||||
buf_writer_init(tsdn, &buf_writer, write_cb, cbopaque, NULL,
|
||||
STATS_PRINT_BUFSIZE);
|
||||
stats_print(buf_writer_get_write_cb(&buf_writer),
|
||||
buf_writer_get_cbopaque(&buf_writer), opts);
|
||||
stats_print(buf_writer_cb, &buf_writer, opts);
|
||||
buf_writer_terminate(tsdn, &buf_writer);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue