aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@systemhalted.org>2015-02-17 19:25:01 -0500
committerCarlos O'Donell <carlos@systemhalted.org>2015-02-17 19:29:15 -0500
commit8a35c3fe122d49ba76dff815b3537affb5a50b45 (patch)
tree37fba229a2f0557ffdfd8ee431f499888aea4a16 /ChangeLog
parent1a2325c06cf309d1d8b4aafcfb1a3d43905baf9b (diff)
downloadglibc-8a35c3fe122d49ba76dff815b3537affb5a50b45.tar
glibc-8a35c3fe122d49ba76dff815b3537affb5a50b45.tar.gz
glibc-8a35c3fe122d49ba76dff815b3537affb5a50b45.tar.bz2
glibc-8a35c3fe122d49ba76dff815b3537affb5a50b45.zip
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog16
1 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 068ed1baf7..cdf49aaa7e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2015-02-17 Carlos O'Donell <carlos@redhat.com>
+
+ * 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 <joseph@codesourcery.com>
[BZ #17991]