Commit 719b242f authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(r_alloc_size_in_use): New function.

(r_alloc_free): Call refill_memory_reserve.
parent 1219a2a4
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment