diff options
| author | Miles Bader | 2005-04-02 22:40:25 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-04-02 22:40:25 +0000 |
| commit | 4a2283bcc7998fef3788136a16a6c2b10df6fe6f (patch) | |
| tree | dc8199f604a6e5a2d57754d843773be6c88c4f36 /src/alloc.c | |
| parent | 417294f4d1d8872d7a4a698de1a9650f18af3b37 (diff) | |
| parent | ab77efd0e55c661ea8fd45df28f2a39d0c46fbd8 (diff) | |
| download | emacs-4a2283bcc7998fef3788136a16a6c2b10df6fe6f.tar.gz emacs-4a2283bcc7998fef3788136a16a6c2b10df6fe6f.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-33
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 223-227)
- Update from CVS
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 aacce3041d5..aee09c3f16c 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -1933,14 +1933,18 @@ allocate_string_data (s, nchars, nbytes) | |||
| 1933 | mmap'ed data typically have an address towards the top of the | 1933 | mmap'ed data typically have an address towards the top of the |
| 1934 | address space, which won't fit into an EMACS_INT (at least on | 1934 | address space, which won't fit into an EMACS_INT (at least on |
| 1935 | 32-bit systems with the current tagging scheme). --fx */ | 1935 | 32-bit systems with the current tagging scheme). --fx */ |
| 1936 | BLOCK_INPUT; | ||
| 1936 | mallopt (M_MMAP_MAX, 0); | 1937 | mallopt (M_MMAP_MAX, 0); |
| 1938 | UNBLOCK_INPUT; | ||
| 1937 | #endif | 1939 | #endif |
| 1938 | 1940 | ||
| 1939 | b = (struct sblock *) lisp_malloc (size + GC_STRING_EXTRA, MEM_TYPE_NON_LISP); | 1941 | b = (struct sblock *) lisp_malloc (size + GC_STRING_EXTRA, MEM_TYPE_NON_LISP); |
| 1940 | 1942 | ||
| 1941 | #ifdef DOUG_LEA_MALLOC | 1943 | #ifdef DOUG_LEA_MALLOC |
| 1942 | /* Back to a reasonable maximum of mmap'ed areas. */ | 1944 | /* Back to a reasonable maximum of mmap'ed areas. */ |
| 1945 | BLOCK_INPUT; | ||
| 1943 | mallopt (M_MMAP_MAX, MMAP_MAX_AREAS); | 1946 | mallopt (M_MMAP_MAX, MMAP_MAX_AREAS); |
| 1947 | UNBLOCK_INPUT; | ||
| 1944 | #endif | 1948 | #endif |
| 1945 | 1949 | ||
| 1946 | b->next_free = &b->first_data; | 1950 | b->next_free = &b->first_data; |