(pure_alloc): After overflow, allocate just a small block.
This commit is contained in:
parent
d75bec6aeb
commit
8322ce0491
1 changed files with 5 additions and 2 deletions
|
@ -3816,8 +3816,11 @@ pure_alloc (size, type)
|
|||
|
||||
if (pure_bytes_used + nbytes > pure_size)
|
||||
{
|
||||
beg = purebeg = (char *) xmalloc (PURESIZE);
|
||||
pure_size = PURESIZE;
|
||||
/* Don't allocate a large amount here,
|
||||
because it might get mmap'd and then its address
|
||||
might not be usable. */
|
||||
beg = purebeg = (char *) xmalloc (10000);
|
||||
pure_size = 10000;
|
||||
pure_bytes_used_before_overflow += pure_bytes_used;
|
||||
pure_bytes_used = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue