Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Memory Zone: Observe when a volume fills up
A counter of allocated bytes is kept for each volume. When the volume gets too full according to the counter, the volume is skipped when doing new mallocs. Fixes a performance problem where a full volume would cause a new malloc to require scanning through all the blocks to see if any free space remains.
- Loading branch information
Showing
1 changed file
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters