From 8a35c3fe122d49ba76dff815b3537affb5a50b45 Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Tue, 17 Feb 2015 19:25:01 -0500 Subject: Use alignment macros, pagesize and powerof2. We are replacing all of the bespoke alignment code with ALIGN_UP, ALIGN_DOWN, PTR_ALIGN_UP, and PTR_ALIGN_DOWN. This cleans up malloc/malloc.c, malloc/arena.c, and elf/dl-reloc.c. It also makes all the code consistently use pagesize, and powerof2 as required. Code size is reduced with the removal of precomputed pagemask, and use of pagesize instead. No measurable difference in performance. No regressions on x86_64. --- ChangeLog | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 068ed1baf7..cdf49aaa7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,19 @@ +2015-02-17 Carlos O'Donell + + * dl-reloc.c: Inlucde libc-internal.h. + (_dl_try_allocate_static_tls): Call ALIGN_UP. + (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN. + (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN. + * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP. + (grow_heap): Likewise. + * malloc/malloc.c: Include libc-internal.h. + (do_check_malloc): Call powerof2. + (sysmalloc): Use pagesize. Call ALIGN_UP. + (systrim): Use pagesize. + (mremap_chunk): Use pagesize. Call ALIGN_UP. + (__libc_valloc): Use pagesize. + (__libc_pvalloc): Use pagesize. Call ALIGN_UP. + 2015-02-17 Joseph Myers [BZ #17991] -- cgit v1.2.3