Skip to content

Alignment for working memory in JITLink. #58446

Open
@lhames

Description

@lhames

The JITLink APIs are currently silent on the issue of alignment in working memory*: no guarantees are provided, and there's no way to specify alignment when requesting working memory on the JIT's allocator. This means that JITLink must use unaligned loads/stores during linking to be safe.

As more programs start adopting JITLink we should try to quantify the overhead caused by this and, if it turns out to be significant, investigate a fix.

  • Executor memory alignment requirements seem to be well covered -- care will need to be taken to distinguish the two in the APIs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions