Skip to content

FreeListAllocator :: FindBest() question #14

Open
@manupedrozo

Description

@manupedrozo

Shouldn't the smallestDiff be updated along with the bestBlock in here?
if (it->data.blockSize >= requiredSpace && (it->data.blockSize - requiredSpace < smallestDiff)) {
bestBlock = it;
}

smallestDiff = it->data.blockSize would be added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions