]> granicus.if.org Git - gc/commit
Define ROUNDUP_PAGESIZE, ROUNDUP_GRANULE_SIZE macros (code refactoring)
authorIvan Maidanski <ivmai@mail.ru>
Sun, 30 Mar 2014 07:24:12 +0000 (11:24 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 30 Mar 2014 07:24:12 +0000 (11:24 +0400)
commit5a4bcb2aa28f7af312922b1ecbb2f729c94caab1
tree9a8ca423774aef14a795fdd8c68c00db86cc9b0d
parentff6c3d9fb8e7065ffe74cb780b2c1f54868152e2
Define ROUNDUP_PAGESIZE, ROUNDUP_GRANULE_SIZE macros (code refactoring)

* alloc.c (GC_expand_hp_inner): Use ROUNDUP_PAGESIZE().
* checksums.c (GC_record_fault, GC_was_faulted): Likewise.
* os_dep.c (GC_unix_mmap_get_mem, GC_wince_get_mem, GC_unmap_start,
GC_remove_protection): Likewise.
* headers.c (GC_scratch_alloc): Use ROUNDUP_GRANULE_SIZE().
* malloc.c (GC_alloc_large): Likewise.
* mallocx.c (GC_malloc_many): Likewise.
* headers.c (GC_scratch_alloc): Use ROUNDUP_PAGESIZE() (only if
USE_MMAP).
* include/private/gc_priv.h (ROUNDUP_GRANULE_SIZE, ROUNDUP_PAGESIZE):
Define macro to round up a value to a multiple of a granule or a page,
respectively.
alloc.c
checksums.c
headers.c
include/private/gc_priv.h
malloc.c
mallocx.c
os_dep.c