diff options
| author | Pip Cet | 2024-07-08 19:11:55 +0000 |
|---|---|---|
| committer | Pip Cet | 2024-07-08 19:14:34 +0000 |
| commit | 640d5b9cdd1c67944cc48a112d416c43c3e8d5c8 (patch) | |
| tree | 130c8ff9535f79cd3625ada02fc466c98631f5d1 /src/alloc.c | |
| parent | 6d8bb714f55226cab1569ca0f77717e0520dff31 (diff) | |
| download | emacs-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.c | 3 |
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, |