mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-22 04:03:11 +00:00
Fix col_ind to write unsigned_val, matching its column type
The extents and hpa-nonfull "ind" columns are emitter_type_unsigned but were set via col_ind.size_val -- correct only by little-endian union overlap. Output is byte-identical. Pre-existing (predates the refactor).
This commit is contained in:
@@ -1114,7 +1114,7 @@ stats_arena_extents_print(emitter_t *emitter, unsigned i) {
|
||||
char size_buf[48];
|
||||
stats_size_col_set(&col_size, sz_pind2sz(j),
|
||||
j > 0 ? sz_pind2sz(j - 1) : 0, size_buf, sizeof(size_buf));
|
||||
col_ind.size_val = j;
|
||||
col_ind.unsigned_val = j;
|
||||
col_ndirty.size_val = e.ndirty;
|
||||
col_dirty.size_val = e.dirty_bytes;
|
||||
col_nmuzzy.size_val = e.nmuzzy;
|
||||
@@ -1423,7 +1423,7 @@ stats_arena_hpa_shard_slabs_print(emitter_t *emitter, unsigned i) {
|
||||
char size_buf[48];
|
||||
stats_size_col_set(&col_size, sz_pind2sz(j),
|
||||
j > 0 ? sz_pind2sz(j - 1) : 0, size_buf, sizeof(size_buf));
|
||||
col_ind.size_val = j;
|
||||
col_ind.unsigned_val = j;
|
||||
col_npageslabs_huge.size_val = s.npageslabs_huge;
|
||||
col_nactive_huge.size_val = s.nactive_huge;
|
||||
col_ndirty_huge.size_val = s.ndirty_huge;
|
||||
|
||||
Reference in New Issue
Block a user