]> granicus.if.org Git - gc/commit
Code refactoring of GC_generic_malloc_inner (eliminate recursion)
authorIvan Maidanski <ivmai@mail.ru>
Fri, 20 Apr 2012 04:53:46 +0000 (08:53 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 20 Apr 2012 11:55:58 +0000 (15:55 +0400)
commit490bf2992e2d2a0b115bb53f15aaab592f02ef8b
tree8b9012dab8ddf7871ec611c1a337e0f7ee0540a7
parenta4e3286cb208d191544de806adebf6e3d12277ab
Code refactoring of GC_generic_malloc_inner (eliminate recursion)

* malloc.c (GC_generic_malloc_inner): Update "lg" value after GC_init
and GC_extend_size_map calls; add assertion on "lg" value after
GC_extend_size_map call; update "opp" and "op" values and retry
allocation instead of recursive call; replace "goto" with return
(remove "out" label).
malloc.c