diff options
| author | Eli Zaretskii | 2012-09-17 10:54:32 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2012-09-17 10:54:32 +0300 |
| commit | 45ba16c706cf9f009997550f5a3de6ea96643a92 (patch) | |
| tree | 7dc3dca63d4eeaa60dfea7ab83ce9d425d818b66 /src | |
| parent | dcddaabb77402bba100322b05831ee5b54d6116b (diff) | |
| download | emacs-45ba16c706cf9f009997550f5a3de6ea96643a92.tar.gz emacs-45ba16c706cf9f009997550f5a3de6ea96643a92.zip | |
Fix the value of __malloc_extra_blocks.
src/ralloc.c (r_alloc_init) [!SYSTEM_MALLOC]: Initialize
__malloc_extra_blocks to 32 instead of 64, like alloc.c did in
emacs_blocked_malloc, now deleted.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/ralloc.c | 12 |
2 files changed, 15 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index daabdd7613e..68c30dbe19e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-09-17 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * ralloc.c (r_alloc_init) [!SYSTEM_MALLOC]: Initialize | ||
| 4 | __malloc_extra_blocks to 32 instead of 64, like alloc.c did in | ||
| 5 | emacs_blocked_malloc, now deleted. | ||
| 6 | |||
| 1 | 2012-09-17 Paul Eggert <eggert@cs.ucla.edu> | 7 | 2012-09-17 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 8 | ||
| 3 | Remove no-longer-needed Solaris 2.4 vfork bug workaround. | 9 | Remove no-longer-needed Solaris 2.4 vfork bug workaround. |
diff --git a/src/ralloc.c b/src/ralloc.c index b0134ea730a..6b03c50ab21 100644 --- a/src/ralloc.c +++ b/src/ralloc.c | |||
| @@ -1204,9 +1204,15 @@ r_alloc_init (void) | |||
| 1204 | UNBLOCK_INPUT; | 1204 | UNBLOCK_INPUT; |
| 1205 | #else | 1205 | #else |
| 1206 | #ifndef SYSTEM_MALLOC | 1206 | #ifndef SYSTEM_MALLOC |
| 1207 | /* Give GNU malloc's morecore some hysteresis | 1207 | /* Give GNU malloc's morecore some hysteresis so that we move all |
| 1208 | so that we move all the relocatable blocks much less often. */ | 1208 | the relocatable blocks much less often. The number used to be |
| 1209 | __malloc_extra_blocks = 64; | 1209 | 64, but alloc.c would override that with 32 in code that was |
| 1210 | removed when SYNC_INPUT became the only input handling mode. | ||
| 1211 | That code was condition on !DOUG_LEA_MALLOC, so the call to | ||
| 1212 | mallopt above is left unchanged. (Actually, I think there's no | ||
| 1213 | system nowadays that uses DOUG_LEA_MALLOC and also uses | ||
| 1214 | REL_ALLOC.) */ | ||
| 1215 | __malloc_extra_blocks = 32; | ||
| 1210 | #endif | 1216 | #endif |
| 1211 | #endif | 1217 | #endif |
| 1212 | 1218 | ||