Skip to content

add Jemalloc pool to mallocPoolTest suite #1455

@bratpiorka

Description

@bratpiorka

add Jemalloc pool to mallocPoolTest suite

INSTANTIATE_TEST_SUITE_P(
    mallocPoolTest, umfPoolTest,
    ::testing::Values(
        ...
        poolCreateExtParams{umfJemallocPoolOps(), nullptr, nullptr,
                            &BA_GLOBAL_PROVIDER_OPS, nullptr, nullptr}), ...
    poolCreateExtParamsNameGen);

currently this crash test_memoryPool (there are left items in the tracking provider):

...
 2/63 Test  #2: test_memoryPool ...............................Subprocess aborted***Exception:   1.54 sec
Running main() from /home/rrudnick/unified-memory-framework/build/_deps/googletest-src/googletest/src/gtest_main.cc
...
test_memoryPool: /home/rrudnick/unified-memory-framework/src/provider/provider_tracking.c:984: check_if_tracker_is_empty: Assertion n_items == 0 && "tracking provider is not empty!"' failed.

error logging shows a lot "failed to split mem region" messages:

[ERROR UMF] trackingAllocationSplit: failed to split memory region: ptr=0x7fb5bb400000, totalSize=4198400, firstSize=20480
[ERROR UMF] trackingAllocationSplit: upstream provider failed to split the region

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions