547 |
return (spare_memory ? Qnil : Qt); |
return (spare_memory ? Qnil : Qt); |
548 |
} |
} |
549 |
|
|
550 |
|
/* If we released our reserve (due to running out of memory), |
551 |
|
and we have a fair amount free once again, |
552 |
|
try to set aside another reserve in case we run out once more. |
553 |
|
|
554 |
|
This is called when a relocatable block is freed in ralloc.c. */ |
555 |
|
|
556 |
|
void |
557 |
|
refill_memory_reserve () |
558 |
|
{ |
559 |
|
#ifndef SYSTEM_MALLOC |
560 |
|
if (spare_memory == 0) |
561 |
|
spare_memory = (char *) malloc ((size_t) SPARE_MEMORY); |
562 |
|
#endif |
563 |
|
} |
564 |
|
|
565 |
/* Called if we can't allocate relocatable space for a buffer. */ |
/* Called if we can't allocate relocatable space for a buffer. */ |
566 |
|
|
567 |
void |
void |
1149 |
|
|
1150 |
#ifndef SYSTEM_MALLOC |
#ifndef SYSTEM_MALLOC |
1151 |
|
|
|
/* If we released our reserve (due to running out of memory), |
|
|
and we have a fair amount free once again, |
|
|
try to set aside another reserve in case we run out once more. |
|
|
|
|
|
This is called when a relocatable block is freed in ralloc.c. */ |
|
|
|
|
|
void |
|
|
refill_memory_reserve () |
|
|
{ |
|
|
if (spare_memory == 0) |
|
|
spare_memory = (char *) malloc ((size_t) SPARE_MEMORY); |
|
|
} |
|
|
|
|
|
|
|
1152 |
/* Arranging to disable input signals while we're in malloc. |
/* Arranging to disable input signals while we're in malloc. |
1153 |
|
|
1154 |
This only works with GNU malloc. To help out systems which can't |
This only works with GNU malloc. To help out systems which can't |