Skip to content

Allocation sometimes fails. #9

@jordirovira

Description

@jordirovira

I'm evaluating this implementation using a simple test program and i see this failing:

rpmalloc_initialize();
rpmalloc_thread_initialize();
void* pTest1 = rpaligned_alloc( 0x100, 16 );
void* pTest2 = rpaligned_alloc( 0x1000, 16 );
void* pTest3 = rpaligned_alloc( 0x10000, 16 );
void* pTest4 = rpaligned_alloc( 0x100000, 16 );
assert(pTest1 && pTest2 && pTest3 && pTest4);

pTest3 and pTest4 seem to return nullptr. Is there something very obvious i am missing?
The unaligned rpmalloc works fine., and so seems to work the original rampantpixels implementation.

Thanks!

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