Skip to content

Commit 12de1e3

Browse files
committed
fix bug
1 parent 9ca8953 commit 12de1e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gc/default/default.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ print_lock_stats(void)
11531153

11541154
lock_stats_t *all_stats[] = {&sweep_lock_stats, &swept_pages_lock_stats};
11551155

1156-
for (int i = 0; i < 3; i++) {
1156+
for (size_t i = 0; i < sizeof(all_stats) / sizeof(all_stats[0]); i++) {
11571157
lock_stats_t *stats = all_stats[i];
11581158

11591159
/* Sort callsites by total contentions (descending) */

0 commit comments

Comments
 (0)