diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-02-07 22:43:23 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-02-07 22:43:23 +0000 |
commit | 719b242f866ff9ecd9e358c5f68c5650608d2991 (patch) | |
tree | 900c390203759fbaa88884fce5b5a3c4c9e91f1b /src/ralloc.c | |
parent | 1219a2a464a172e581735c055bdd39ba24446864 (diff) | |
download | emacs-719b242f866ff9ecd9e358c5f68c5650608d2991.tar.gz |
(r_alloc_size_in_use): New function.
(r_alloc_free): Call refill_memory_reserve.
Diffstat (limited to 'src/ralloc.c')
-rw-r--r-- | src/ralloc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ralloc.c b/src/ralloc.c index 5a2e507feb2..f27d0c64636 100644 --- a/src/ralloc.c +++ b/src/ralloc.c @@ -347,6 +347,15 @@ relinquish () 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 @@ r_alloc_free (ptr) free_bloc (dead_bloc); *ptr = 0; + + refill_memory_reserve (); } /* Given a pointer at address PTR to relocatable data, resize it to SIZE. |