diff options
| author | Jan Djärv | 2004-01-11 21:50:12 +0000 |
|---|---|---|
| committer | Jan Djärv | 2004-01-11 21:50:12 +0000 |
| commit | de7515d6b8aef2312120f3749d2423cb1f8f332f (patch) | |
| tree | f7eac7d17d387128f97dcbbb6f78abe2e0504402 /src/alloc.c | |
| parent | 12b795e1a4bbba88471c4a439bcfd45fd091480e (diff) | |
| download | emacs-de7515d6b8aef2312120f3749d2423cb1f8f332f.tar.gz emacs-de7515d6b8aef2312120f3749d2423cb1f8f332f.zip | |
* alloc.c (allocate_vectorlike): Surround calls to mallopt with
BLOCK/UNBLOCK_INPUT.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c index 1835d2a59eb..91fade83609 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -2498,7 +2498,9 @@ allocate_vectorlike (len, type) | |||
| 2498 | /* Prevent mmap'ing the chunk. Lisp data may not be mmap'ed | 2498 | /* Prevent mmap'ing the chunk. Lisp data may not be mmap'ed |
| 2499 | because mapped region contents are not preserved in | 2499 | because mapped region contents are not preserved in |
| 2500 | a dumped Emacs. */ | 2500 | a dumped Emacs. */ |
| 2501 | BLOCK_INPUT; | ||
| 2501 | mallopt (M_MMAP_MAX, 0); | 2502 | mallopt (M_MMAP_MAX, 0); |
| 2503 | UNBLOCK_INPUT; | ||
| 2502 | #endif | 2504 | #endif |
| 2503 | 2505 | ||
| 2504 | nbytes = sizeof *p + (len - 1) * sizeof p->contents[0]; | 2506 | nbytes = sizeof *p + (len - 1) * sizeof p->contents[0]; |
| @@ -2506,7 +2508,9 @@ allocate_vectorlike (len, type) | |||
| 2506 | 2508 | ||
| 2507 | #ifdef DOUG_LEA_MALLOC | 2509 | #ifdef DOUG_LEA_MALLOC |
| 2508 | /* Back to a reasonable maximum of mmap'ed areas. */ | 2510 | /* Back to a reasonable maximum of mmap'ed areas. */ |
| 2511 | BLOCK_INPUT; | ||
| 2509 | mallopt (M_MMAP_MAX, MMAP_MAX_AREAS); | 2512 | mallopt (M_MMAP_MAX, MMAP_MAX_AREAS); |
| 2513 | UNBLOCK_INPUT; | ||
| 2510 | #endif | 2514 | #endif |
| 2511 | 2515 | ||
| 2512 | consing_since_gc += nbytes; | 2516 | consing_since_gc += nbytes; |