mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 15:29:31 +03:00
nicer show arenas
This commit is contained in:
parent
15f2a9c729
commit
3a1f2fcd3b
1 changed files with 1 additions and 1 deletions
|
@ -1423,7 +1423,7 @@ static size_t mi_debug_show_chunks(const char* header1, const char* header2, con
|
||||||
size_t bit_set_count = 0;
|
size_t bit_set_count = 0;
|
||||||
for (size_t i = 0; i < chunk_count && bit_count < slice_count; i++) {
|
for (size_t i = 0; i < chunk_count && bit_count < slice_count; i++) {
|
||||||
char buf[5*MI_BCHUNK_BITS + 64]; _mi_memzero(buf, sizeof(buf));
|
char buf[5*MI_BCHUNK_BITS + 64]; _mi_memzero(buf, sizeof(buf));
|
||||||
if (bit_count > used_slice_count) {
|
if (bit_count > used_slice_count && i+2 < chunk_count) {
|
||||||
const size_t diff = chunk_count - 1 - i;
|
const size_t diff = chunk_count - 1 - i;
|
||||||
bit_count += diff*MI_BCHUNK_BITS;
|
bit_count += diff*MI_BCHUNK_BITS;
|
||||||
_mi_raw_message(" |\n");
|
_mi_raw_message(" |\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue