]> granicus.if.org Git - gc/commit
Code refactoring of GC_finish_collection (eliminate code duplication
authorIvan Maidanski <ivmai@mail.ru>
Fri, 27 Jan 2012 05:46:55 +0000 (09:46 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 27 Jan 2012 13:42:36 +0000 (17:42 +0400)
commitac8fcad40028866f99028332eebba994175345b2
treea4d2bf81c2ddbfd75d583b15fbbaa6d8a383e139
parent8f1c9620836ac249e28b3e35af377c6bc329f86b
Code refactoring of GC_finish_collection (eliminate code duplication
via COMMA_IF_USE_MUNMAP new macro)

* alloc.c (IF_USE_MUNMAP, COMMA_IF_USE_MUNMAP): New macro (defined
conditionally based on USE_MUNMAP).
* alloc.c (GC_finish_collection): Eliminate code duplication via
[COMMA_]IF_USE_MUNMAP macro.
* alloc.c (GC_try_to_collect_general): Use IF_USE_MUNMAP instead of
ifdef USE_MUNMAP.
alloc.c