diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-03-05 08:25:00 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-03-05 08:25:00 +0300 |
commit | aa2f3c350d65d514bb0bca763877ccdb29013401 (patch) | |
tree | bb423e554085a0a57981e865465971484308b031 /reclaim.c | |
parent | ddbc329fc63bc9369026c06593b55dd8d76ef017 (diff) | |
download | bdwgc-aa2f3c350d65d514bb0bca763877ccdb29013401.tar.gz |
Refine column names output by GC_print_block_list
* reclaim.c (GC_print_block_list): Change printed column names of the
table; avoid commas in a printed column name; use BZERO() to initialize
pstats local variable (instead of initialization of each field).
Diffstat (limited to 'reclaim.c')
-rw-r--r-- | reclaim.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -576,12 +576,11 @@ void GC_print_block_list(void) { struct Print_stats pstats; - GC_printf("kind(0=ptrfree,1=normal,2=unc.)," - "size_in_bytes,#_marks_set,#objs\n"); - pstats.number_of_blocks = 0; - pstats.total_bytes = 0; + GC_printf("kind(0=ptrfree/1=normal/2=unc.)," + "obj_sz,#marks_set,#objs_in_block\n"); + BZERO(&pstats, sizeof(pstats)); GC_apply_to_all_blocks(GC_print_block_descr, (word)&pstats); - GC_printf("blocks= %lu, bytes= %lu\n", + GC_printf("blocks= %lu, total_bytes= %lu\n", (unsigned long)pstats.number_of_blocks, (unsigned long)pstats.total_bytes); } |