mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 13:13:06 +00:00
Unify buffered writer naming
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user