Skip to content

Loop over the allocated blocks #966

Description

@ksaurabh-amd

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.

Image

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions