diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/charset.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d6e5390c84f..d976234f0c5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2011-09-30 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-09-30 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Port --enable-checking=all to Fedora 14 x86-64. | ||
| 4 | * charset.c (syms_of_charset): Also account for glibc malloc's | ||
| 5 | internal overhead when calculating the initial malloc maximum. | ||
| 6 | |||
| 3 | Port --enable-checking=all to Fedora 14 x86. | 7 | Port --enable-checking=all to Fedora 14 x86. |
| 4 | * alloc.c (XMALLOC_OVERRUN_CHECK_OVERHEAD, XMALLOC_OVERRUN_CHECK_SIZE): | 8 | * alloc.c (XMALLOC_OVERRUN_CHECK_OVERHEAD, XMALLOC_OVERRUN_CHECK_SIZE): |
| 5 | Move to lisp.h. | 9 | Move to lisp.h. |
diff --git a/src/charset.c b/src/charset.c index 1209ac6b68d..f1b4897ffe6 100644 --- a/src/charset.c +++ b/src/charset.c | |||
| @@ -2337,7 +2337,9 @@ syms_of_charset (void) | |||
| 2337 | mmap for larger allocations, and these don't work well across dumped | 2337 | mmap for larger allocations, and these don't work well across dumped |
| 2338 | systems. */ | 2338 | systems. */ |
| 2339 | enum { | 2339 | enum { |
| 2340 | initial_malloc_max = (1 << 16) - 1 - XMALLOC_OVERRUN_CHECK_OVERHEAD, | 2340 | glibc_malloc_overhead = 3 * sizeof (size_t) - 1, |
| 2341 | initial_malloc_max = | ||
| 2342 | (1 << 16) - 1 - glibc_malloc_overhead - XMALLOC_OVERRUN_CHECK_OVERHEAD, | ||
| 2341 | charset_table_size_init = initial_malloc_max / sizeof (struct charset) | 2343 | charset_table_size_init = initial_malloc_max / sizeof (struct charset) |
| 2342 | }; | 2344 | }; |
| 2343 | 2345 | ||