diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c index 731391a779b..52cada7aba5 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -3816,8 +3816,11 @@ pure_alloc (size, type) | |||
| 3816 | 3816 | ||
| 3817 | if (pure_bytes_used + nbytes > pure_size) | 3817 | if (pure_bytes_used + nbytes > pure_size) |
| 3818 | { | 3818 | { |
| 3819 | beg = purebeg = (char *) xmalloc (PURESIZE); | 3819 | /* Don't allocate a large amount here, |
| 3820 | pure_size = PURESIZE; | 3820 | because it might get mmap'd and then its address |
| 3821 | might not be usable. */ | ||
| 3822 | beg = purebeg = (char *) xmalloc (10000); | ||
| 3823 | pure_size = 10000; | ||
| 3821 | pure_bytes_used_before_overflow += pure_bytes_used; | 3824 | pure_bytes_used_before_overflow += pure_bytes_used; |
| 3822 | pure_bytes_used = 0; | 3825 | pure_bytes_used = 0; |
| 3823 | } | 3826 | } |