Skip to content

Follow-up work on shared allocation helpers #116191

@filipnavara

Description

@filipnavara

PR #115339 enables sharing of the allocation helpers written in assembly between CoreCLR and NativeAOT runtimes. This is a tracking issue for follow-up work that came up during review of the PR:

  • Change managed signatures of new array helpers to take nint (1)
  • Optimization: Enable the RhpNewObjectArrayFast helper on NativeAOT and teach JIT interface to use it.
  • Cleanup: Extract the 0x40000000 magic constant in RhpNewObjectArrayFast to a named constant like FAST_OBJECT_ARRAY_ALLOCATION_THRESHOLD (1)
  • Correctness: NativeAOT doesn't properly handle multi-dimensional arrays larger than 2 GB (1, 2, 3)
  • Optimization: Investigate and benchmark potential improvements to x86 allocation helpers (1)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions