]> granicus.if.org Git - gc/commit
Minor code refactoring of GC_allochblk_nth
authorIvan Maidanski <ivmai@mail.ru>
Wed, 17 Oct 2012 17:58:38 +0000 (21:58 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 17 Oct 2012 17:58:38 +0000 (21:58 +0400)
commit3186144dd72b884bb5a664c1830e91040ff911cf
treedb3abef09378f82564295f4c7c7e419ad3c9c4f5
parent630803c5ee009137cae22ee89a253c503414ec65
Minor code refactoring of GC_allochblk_nth

* allchblk.c (GC_allochblk_nth): Simplify code in the loop (which
allocates and drops the block in small chunks) by first calling
GC_install_header if h != hbp (instead of calling it a conditional
expression) and, then, calling setup_header if hhdr is non-NULL.
allchblk.c