summaryrefslogtreecommitdiff
path: root/alloc.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2023-04-09 09:34:04 +0300
committerIvan Maidanski <ivmai@mail.ru>2023-04-10 10:04:08 +0300
commitb787aee8a9591ea48c43901a834945029ccfe442 (patch)
tree61c63ac9815f4ebd8ec42c668282fb682f526bc9 /alloc.c
parentb21b53a356f332005db090c6a9a4e0d17322c935 (diff)
downloadbdwgc-b787aee8a9591ea48c43901a834945029ccfe442.tar.gz
Consistent naming of variables of obj_kind type
(refactoring) Also, reduce scope of local variables in GC_continue_reclaim and GC_reclaim_unconditionally_marked. * allchblk.c (setup_header): Define and use ok local variable. * malloc.c (GC_alloc_reclaim_list): Rename kind argument to ok. * malloc.c (GC_generic_malloc_inner_small): Rename kind local variable to ok. * reclaim.c [ENABLE_DISCLAIM] (GC_disclaim_and_reclaim): Remove ok local variable. * reclaim.c (GC_reclaim_all): Likewise. * reclaim.c (GC_continue_reclaim): Move hhdr local variable to inner block; add comment. * reclaim.c [!EAGER_SWEEP && ENABLE_DISCLAIM] (GC_reclaim_unconditionally_marked): Move sz, hhdr, hbp, ok, rlp, rlh local variables to the appropriate inner blocks.
Diffstat (limited to 'alloc.c')
0 files changed, 0 insertions, 0 deletions