Skip to content

Allocating full size >512 returns None #9

@Swoorup

Description

@Swoorup

Creating and then allocating the same size for anything over 512 results in allocation failure.

#[test]
fn test_allocator() {
    let requested = 513;
    let mut allocator: Allocator<u32> = Allocator::new(requested);
    let result = allocator.allocate(requested);
    assert!(result.is_some());
}

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