summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-02-04 10:01:29 +0100
committerFlorian Weimer <fweimer@redhat.com>2019-02-04 10:01:29 +0100
commit221baae0012e56e4043b914fec47340ef3a1e0c8 (patch)
tree3d6e6c931cffecfd10a836bc0acaf51410a3a5cc /ChangeLog
parentb8c7238167de4c080b8b0909213bc7b5abef46e3 (diff)
downloadglibc-221baae0012e56e4043b914fec47340ef3a1e0c8.tar.gz
glibc-221baae0012e56e4043b914fec47340ef3a1e0c8.tar.xz
glibc-221baae0012e56e4043b914fec47340ef3a1e0c8.zip
time: Avoid alignment gaps in __tzfile_read
By ordering the suballocations by decreasing alignment, alignment
gaps can be avoided.

Also use __glibc_unlikely for reading the transitions and type
indexes.  In the 8-byte case, two reads are now needed because the
transitions and type indexes are no longer adjacent.  The separate
call to __fread_unlocked does not matter from a performance point of
view because __tzfile_read is only invoked rarely.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bc1b17ffa7..0c9a4e885b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-02-04  Florian Weimer  <fweimer@redhat.com>
+
+	* time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
+	alignment gaps.
+
 2019-02-03  Florian Weimer  <fweimer@redhat.com>
 
 	* time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its