diff options
| author | Richard M. Stallman | 1995-02-07 22:43:23 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-02-07 22:43:23 +0000 |
| commit | 719b242f866ff9ecd9e358c5f68c5650608d2991 (patch) | |
| tree | 900c390203759fbaa88884fce5b5a3c4c9e91f1b /src/ralloc.c | |
| parent | 1219a2a464a172e581735c055bdd39ba24446864 (diff) | |
| download | emacs-719b242f866ff9ecd9e358c5f68c5650608d2991.tar.gz emacs-719b242f866ff9ecd9e358c5f68c5650608d2991.zip | |
(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 () | |||
| 347 | abort (); | 347 | abort (); |
| 348 | } | 348 | } |
| 349 | } | 349 | } |
| 350 | |||
| 351 | /* Return the total size in use by relocating allocator, | ||
| 352 | above where malloc gets space. */ | ||
| 353 | |||
| 354 | long | ||
| 355 | r_alloc_size_in_use () | ||
| 356 | { | ||
| 357 | return break_value - virtual_break_value; | ||
| 358 | } | ||
| 350 | 359 | ||
| 351 | /* The meat - allocating, freeing, and relocating blocs. */ | 360 | /* The meat - allocating, freeing, and relocating blocs. */ |
| 352 | 361 | ||
| @@ -890,6 +899,8 @@ r_alloc_free (ptr) | |||
| 890 | 899 | ||
| 891 | free_bloc (dead_bloc); | 900 | free_bloc (dead_bloc); |
| 892 | *ptr = 0; | 901 | *ptr = 0; |
| 902 | |||
| 903 | refill_memory_reserve (); | ||
| 893 | } | 904 | } |
| 894 | 905 | ||
| 895 | /* Given a pointer at address PTR to relocatable data, resize it to SIZE. | 906 | /* Given a pointer at address PTR to relocatable data, resize it to SIZE. |