]> granicus.if.org Git - gc/commit
Make extend_size_map() static
authorIvan Maidanski <ivmai@mail.ru>
Tue, 24 Oct 2017 21:06:22 +0000 (00:06 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 24 Oct 2017 21:06:22 +0000 (00:06 +0300)
commit3070f67129d9ef8854592b98b9bd41919930c78b
treea7d41dd411eb87b082387a9a05f8e31cdce06494
parent184b5a8911c904f04159d6f75033bdc10c63d13f
Make extend_size_map() static
(code refactoring)

* include/private/gc_priv.h (GC_extend_size_map): Remove prototype.
* malloc.c (GC_extend_size_map): Move the function definition from
misc.c; change GC_INNER to STATIC; reformat code; remove j and
much_smaller_than_i local variables; add assertions that I_HOLD_LOCK
and GC_size_map[i]==0; remove comment that GC_size_map[i] is expected
to be zero.
* malloc.c (GC_generic_malloc_inner): Capitalize the first letter of
the description comment.
* misc.c (GC_extend_size_map): Remove the definition.
include/private/gc_priv.h
malloc.c
misc.c