diff options
| author | Paul Eggert | 2016-01-30 14:20:57 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-01-30 15:26:08 -0800 |
| commit | 2ee29634fe25352fb320bc0e04e0cae3eca5ad97 (patch) | |
| tree | 69e4488f1738cdd0173551401183456ef03e5bf3 /src/sheap.h | |
| parent | 3d82a8ee4bd392ae536c8c3640140d1d0f594f44 (diff) | |
| download | emacs-2ee29634fe25352fb320bc0e04e0cae3eca5ad97.tar.gz emacs-2ee29634fe25352fb320bc0e04e0cae3eca5ad97.zip | |
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)
Diffstat (limited to 'src/sheap.h')
| -rw-r--r-- | src/sheap.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sheap.h b/src/sheap.h index 4af3cf482b1..db059d287c4 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 | |||
| 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 19 | 19 | ||
| 20 | #include <stddef.h> | 20 | #include <stddef.h> |
| 21 | #include "lisp.h" | ||
| 21 | 22 | ||
| 22 | #ifdef ENABLE_CHECKING | 23 | /* Size of the static heap. Guess a value that is probably too large, |
| 23 | # define STATIC_HEAP_SIZE (28 * 1024 * 1024) | 24 | by up to a factor of two or so. Typically the unused part is not |
| 24 | #else | 25 | paged in and so does not cost much. */ |
| 25 | # define STATIC_HEAP_SIZE (19 * 1024 * 1024) | 26 | enum { STATIC_HEAP_SIZE = sizeof (Lisp_Object) << 21 }; |
| 26 | #endif | ||
| 27 | 27 | ||
| 28 | extern char bss_sbrk_buffer[STATIC_HEAP_SIZE]; | 28 | extern char bss_sbrk_buffer[STATIC_HEAP_SIZE]; |
| 29 | extern char *max_bss_sbrk_ptr; | 29 | extern char *max_bss_sbrk_ptr; |