[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 2ee2963 12/15: Shrink static heap a bit
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] master 2ee2963 12/15: Shrink static heap a bit |
Date: |
Sat, 30 Jan 2016 23:26:18 +0000 |
branch: master
commit 2ee29634fe25352fb320bc0e04e0cae3eca5ad97
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
Shrink static heap a bit
* src/sheap.h: Include lisp.h, for Lisp_Object.
(STATIC_HEAP_SIZE): Now an enum constant, not a macro.
Make it 2 MiB * sizeof (Lisp_Object), which is a bit more
conservative than the old value.
(Bug#22086)
---
src/sheap.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/sheap.h b/src/sheap.h
index 4af3cf4..db059d2 100644
--- a/src/sheap.h
+++ b/src/sheap.h
@@ -18,12 +18,12 @@ You should have received a copy of the GNU General Public
License
along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#include <stddef.h>
+#include "lisp.h"
-#ifdef ENABLE_CHECKING
-# define STATIC_HEAP_SIZE (28 * 1024 * 1024)
-#else
-# define STATIC_HEAP_SIZE (19 * 1024 * 1024)
-#endif
+/* Size of the static heap. Guess a value that is probably too large,
+ by up to a factor of two or so. Typically the unused part is not
+ paged in and so does not cost much. */
+enum { STATIC_HEAP_SIZE = sizeof (Lisp_Object) << 21 };
extern char bss_sbrk_buffer[STATIC_HEAP_SIZE];
extern char *max_bss_sbrk_ptr;
- [Emacs-diffs] master updated (935b4d0 -> 692e410), Paul Eggert, 2016/01/30
- [Emacs-diffs] master dec1390 03/15: unexelf.c hook to support HYBRID_MALLOC on ELF, Paul Eggert, 2016/01/30
- [Emacs-diffs] master 874c59a 06/15: Report static heap usage on non-Cygwin, too, Paul Eggert, 2016/01/30
- [Emacs-diffs] master a5f8586 02/15: Link temacs with gnulib compiled with -Demacs, Paul Eggert, 2016/01/30
- [Emacs-diffs] master 384ffef 05/15: Pacify GCC on extern decls, Paul Eggert, 2016/01/30
- [Emacs-diffs] master d6585a9 04/15: Add musl patch to support HYBRID_MALLOC on elf systems, Paul Eggert, 2016/01/30
- [Emacs-diffs] master cb22fce 01/15: Internal linkage for gmalloc etc. if HYBRID_MALLOC, Paul Eggert, 2016/01/30
- [Emacs-diffs] master e4cd4a7 08/15: * src/alloc.c: Include "sheap.h"., Paul Eggert, 2016/01/30
- [Emacs-diffs] master e1a9f20 07/15: Pacify --enable-gcc-warnings when HYBRID_MALLOC, Paul Eggert, 2016/01/30
- [Emacs-diffs] master 2ee2963 12/15: Shrink static heap a bit,
Paul Eggert <=
- [Emacs-diffs] master 370a260 14/15: Make it easy to override preferred-branch test, Paul Eggert, 2016/01/30
- [Emacs-diffs] master 3d82a8e 11/15: Fix extern symbols defined and not used, Paul Eggert, 2016/01/30
- [Emacs-diffs] master 7fdc3cf 10/15: Build lib/e-*.o only on platforms that need it, Paul Eggert, 2016/01/30
- [Emacs-diffs] master a4817d8 09/15: Include <malloc.h> when advisable, Paul Eggert, 2016/01/30
- [Emacs-diffs] master 692e410 15/15: Tell Automake the new lib/Makefile.am is OK, Paul Eggert, 2016/01/30
- [Emacs-diffs] master ffbf163 13/15: ; Try to clean up ChangeLog.2 mess created by merge., Paul Eggert, 2016/01/30