mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-29 16:41:45 -08:00
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)
This commit is contained in:
parent
3d82a8ee4b
commit
2ee29634fe
1 changed files with 5 additions and 5 deletions
10
src/sheap.h
10
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue