gc.c: use PRIdSIZE
* gc.c (heap_extend_pages): fix format specifiers for size_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5951bbecb0
commit
c55bcb9c43
10
gc.c
10
gc.c
@ -1626,8 +1626,14 @@ heap_extend_pages(rb_objspace_t *objspace, size_t free_slots, size_t total_slots
|
|||||||
|
|
||||||
next_used = (size_t)(f * used);
|
next_used = (size_t)(f * used);
|
||||||
|
|
||||||
if (0) fprintf(stderr, "free_slots(%8ld)/total_slots(%8ld)=%1.2f, G(%1.2f), f(%1.2f), used(%8ld) => next_used(%8ld)\n",
|
if (0) {
|
||||||
free_slots, total_slots, free_slots/(double)total_slots, goal_ratio, f, used, next_used);
|
fprintf(stderr,
|
||||||
|
"free_slots(%8"PRIdSIZE")/total_slots(%8"PRIdSIZE")=%1.2f,"
|
||||||
|
" G(%1.2f), f(%1.2f),"
|
||||||
|
" used(%8"PRIdSIZE") => next_used(%8"PRIdSIZE")\n",
|
||||||
|
free_slots, total_slots, free_slots/(double)total_slots,
|
||||||
|
goal_ratio, f, used, next_used);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gc_params.growth_max_slots > 0) {
|
if (gc_params.growth_max_slots > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user