Skip to content

Eliminate global lock in allocation path #3472

Closed
@bblum

Description

@bblum

Currently, I believe @ and ~ are represented by allocating on the same literal heap at runtime. Creating a new private heap for each task for @-allocations would let tasks avoid hitting a global lock for every allocation.

Global locking is an important consideration for massively-parallel computation, and providing a way to avoid it while still allowing dynamic memory allocation would be seriously attractive to the multicore programming world. (It would also provide more motivation to use @-vectors!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationA-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions