mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-25 00:23:33 +03:00
Unify buffered writer naming
This commit is contained in:
parent
9a60cf54ec
commit
6b6b4709b3
6 changed files with 21 additions and 21 deletions
|
|
@ -3696,10 +3696,10 @@ je_malloc_stats_print(void (*write_cb)(void *, const char *), void *cbopaque,
|
|||
char *stats_print_buf = (char *)iallocztm(tsdn,
|
||||
STATS_PRINT_BUFSIZE, sz_size2index(STATS_PRINT_BUFSIZE),
|
||||
false, NULL, true, arena_get(TSDN_NULL, 0, true), true);
|
||||
buf_writer_arg_t stats_print_buf_arg = {write_cb, cbopaque,
|
||||
buf_write_arg_t stats_print_buf_arg = {write_cb, cbopaque,
|
||||
stats_print_buf, STATS_PRINT_BUFSIZE - 1, 0};
|
||||
stats_print(buffered_write_cb, &stats_print_buf_arg, opts);
|
||||
buf_writer_flush(&stats_print_buf_arg);
|
||||
stats_print(buf_write_cb, &stats_print_buf_arg, opts);
|
||||
buf_write_flush(&stats_print_buf_arg);
|
||||
idalloctm(tsdn, stats_print_buf, NULL, NULL, true, true);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue