-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
I want to loop over the allocated blocks and see how much of the memory is in each of the block is allocated. One of the thing that I want to do is pack the memory together and prevent usage of small memory location in the block.
In the first one you have 4 blocks that have some memory regions that are allocated. Because of this the block cannot be freed. But by arranging the memory we can get only one occupied block and rest 3 can be freed. I wanted to achieve something like this.
(Blue region shows where the memory is allocated)
Is there any suggestion or a way in which I can loop over the blocks.
Metadata
Metadata
Assignees
Labels
No labels