diff options
| author | Eli Zaretskii | 2023-03-04 17:01:16 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2023-03-04 17:01:16 +0200 |
| commit | 4b3ccf3092eaf5573b0f4968ee9a4515d04fd061 (patch) | |
| tree | 3062bba62dbb1592750ad15c737b14590cd77899 /src/alloc.c | |
| parent | 396f46d904ab7509476b0d824ec2e4d9a231a2df (diff) | |
| download | emacs-4b3ccf3092eaf5573b0f4968ee9a4515d04fd061.tar.gz emacs-4b3ccf3092eaf5573b0f4968ee9a4515d04fd061.zip | |
Unbreak the unexec build
* src/alloc.c (BLOCK_ALIGN) [HAVE_UNEXEC]: Reset back to 1024.
(Bug#61960)
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index 5450586b533..d09fc41dec6 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -1083,7 +1083,11 @@ lisp_free (void *block) | |||
| 1083 | BLOCK_BYTES and guarantees they are aligned on a BLOCK_ALIGN boundary. */ | 1083 | BLOCK_BYTES and guarantees they are aligned on a BLOCK_ALIGN boundary. */ |
| 1084 | 1084 | ||
| 1085 | /* Byte alignment of storage blocks. */ | 1085 | /* Byte alignment of storage blocks. */ |
| 1086 | #define BLOCK_ALIGN (1 << 15) | 1086 | #ifdef HAVE_UNEXEC |
| 1087 | # define BLOCK_ALIGN (1 << 10) | ||
| 1088 | #else /* !HAVE_UNEXEC */ | ||
| 1089 | # define BLOCK_ALIGN (1 << 15) | ||
| 1090 | #endif | ||
| 1087 | verify (POWER_OF_2 (BLOCK_ALIGN)); | 1091 | verify (POWER_OF_2 (BLOCK_ALIGN)); |
| 1088 | 1092 | ||
| 1089 | /* Use aligned_alloc if it or a simple substitute is available. | 1093 | /* Use aligned_alloc if it or a simple substitute is available. |