aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPip Cet2024-07-08 19:11:55 +0000
committerPip Cet2024-07-08 19:14:34 +0000
commit640d5b9cdd1c67944cc48a112d416c43c3e8d5c8 (patch)
tree130c8ff9535f79cd3625ada02fc466c98631f5d1 /src/alloc.c
parent6d8bb714f55226cab1569ca0f77717e0520dff31 (diff)
downloademacs-640d5b9cdd1c67944cc48a112d416c43c3e8d5c8.tar.gz
emacs-640d5b9cdd1c67944cc48a112d416c43c3e8d5c8.zip
Die if pure space overflows and we're using MPS
We cannot currently support this as there's no way to know which objects have headers. * src/alloc.c (pure_alloc) [HAVE_MPS]: Die on pure space overflow.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 2d821ca997f..7cb2e64c1d0 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -5890,6 +5890,9 @@ pure_alloc (size_t size, int type)
5890 { 5890 {
5891 message ("Pure Lisp storage overflowed"); 5891 message ("Pure Lisp storage overflowed");
5892 pure_overflow_warned = true; 5892 pure_overflow_warned = true;
5893#ifdef HAVE_MPS
5894 error ("Cannot continue, pure space overflowed");
5895#endif
5893 } 5896 }
5894 5897
5895 /* Don't allocate a large amount here, 5898 /* Don't allocate a large amount here,