This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.18-201-gd3d2375


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  d3d237560b858b3c07973a5261cd6903fe52909c (commit)
      from  975569d0d953fb8940d23af83ce9f9765b2b07ae (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=d3d237560b858b3c07973a5261cd6903fe52909c

commit d3d237560b858b3c07973a5261cd6903fe52909c
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu Oct 3 22:00:05 2013 +0000

    Hardcode locale archive page size as 4096.

diff --git a/ChangeLog b/ChangeLog
index a038c92..1daa62f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
 
+	* locale/programs/locarchive.c (add_locale): Use constant 4096 for
+	page size instead of calling getpagesize.
+
 	* locale/localeinfo.h (LOCFILE_ALIGN): New macro.
 	(LOCFILE_ALIGN_MASK): Likewise.
 	(LOCFILE_ALIGN_UP): Likewise.
diff --git a/locale/programs/locarchive.c b/locale/programs/locarchive.c
index 13dba0f..e2a30b5 100644
--- a/locale/programs/locarchive.c
+++ b/locale/programs/locarchive.c
@@ -838,7 +838,12 @@ add_locale (struct locarhandle *ah,
   off64_t lastoffset;
   char *ptr;
   struct locale_category_data *size_order[__LC_LAST];
-  const size_t pagesz = getpagesize ();
+  /* Page size alignment is a minor optimization for locality; use a
+     common value here rather than making the localedef output depend
+     on the page size of the system on which localedef is run.  See
+     <https://sourceware.org/glibc/wiki/Development_Todo/Master#Locale_archive_alignment>
+     for more discussion.  */
+  const size_t pagesz = 4096;
   int small_mask;
 
   head = ah->addr;

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                    |    3 +++
 locale/programs/locarchive.c |    7 ++++++-
 2 files changed, 9 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]