/[emacs]/emacs/src/alloc.c
ViewVC logotype

Diff of /emacs/src/alloc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.375 by dann, Fri Sep 30 22:38:16 2005 UTC revision 1.376 by rms, Tue Oct 4 20:26:13 2005 UTC
# Line 547  DEFUN ("memory-full-p", Fmemory_full_p, Line 547  DEFUN ("memory-full-p", Fmemory_full_p,
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
# Line 1134  allocate_buffer () Line 1149  allocate_buffer ()
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

Legend:
Removed from v.1.375  
changed lines
  Added in v.1.376

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26