Skip to content

type_allocator does not support non-parlay threads #72

@lihaohong6

Description

@lihaohong6

Invoking parlay::type_allocator's alloc and free functions with a thread spawned by std::thread would result in segfaults. Our current workaround is to run the new task using pardo, but it makes the control flow more complicated.

Is there a way to allow non-parlay threads to interact with a type_allocator? Perhaps some function could allow a thread to directly free a pointer onto the the global free list (seems to be global_stack)? The documentation could also be updated since it took us some time to figure out what was causing the segfaults.

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