File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -42,14 +42,6 @@ void DumpAllocStats::print_stats(int ro_all, int rw_all) {
42
42
_counts[RO][StringBucketType] = _string_stats.bucket_count ;
43
43
_bytes [RO][StringBucketType] = _string_stats.bucket_bytes ;
44
44
45
- // prevent divide-by-zero
46
- if (ro_all < 1 ) {
47
- ro_all = 1 ;
48
- }
49
- if (rw_all < 1 ) {
50
- rw_all = 1 ;
51
- }
52
-
53
45
int all_ro_count = 0 ;
54
46
int all_ro_bytes = 0 ;
55
47
int all_rw_count = 0 ;
@@ -102,8 +94,11 @@ void DumpAllocStats::print_stats(int ro_all, int rw_all) {
102
94
all_rw_count, all_rw_bytes, all_rw_perc,
103
95
all_count, all_bytes, all_perc);
104
96
105
- assert (all_ro_bytes == ro_all, " everything should have been counted" );
106
- assert (all_rw_bytes == rw_all, " everything should have been counted" );
97
+ msg.flush ();
98
+
99
+ assert (all_ro_bytes == ro_all && all_rw_bytes == rw_all,
100
+ " everything should have been counted (used/counted: ro %d/%d, rw %d/%d" ,
101
+ ro_all, all_ro_bytes, rw_all, all_rw_bytes);
107
102
108
103
#undef fmt_stats
109
104
}
You can’t perform that action at this time.
0 commit comments