changeset 10682:5659c0885145

(r_alloc_size_in_use): New function. (r_alloc_free): Call refill_memory_reserve.
author Richard M. Stallman <rms@gnu.org>
date Tue, 07 Feb 1995 22:43:23 +0000
parents 14d924cf1114
children 64e6021d0ba0
files src/ralloc.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ralloc.c	Tue Feb 07 21:58:09 1995 +0000
+++ b/src/ralloc.c	Tue Feb 07 22:43:23 1995 +0000
@@ -347,6 +347,15 @@
 	abort ();
     }
 }
+
+/* Return the total size in use by relocating allocator,
+   above where malloc gets space.  */
+
+long
+r_alloc_size_in_use ()
+{
+  return break_value - virtual_break_value;
+}
 
 /* The meat - allocating, freeing, and relocating blocs.  */
 
@@ -890,6 +899,8 @@
 
   free_bloc (dead_bloc);
   *ptr = 0;
+
+  refill_memory_reserve ();
 }
 
 /* Given a pointer at address PTR to relocatable data, resize it to SIZE.