Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Also simplify path for NativeOAT.
Mono already piggybacks on the AllocateArray path anyway.
  • Loading branch information
jthorborg committed Jul 21, 2023
commit 30fd37522426dac18945c7518e70700289d13fa1
Original file line number Diff line number Diff line change
Expand Up @@ -816,10 +816,6 @@ public static unsafe T[] AllocateUninitializedArray<T>(int length, bool pinned =
}
#endif
}
else if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
{
return AllocateArray<T>(length, pinned: true);
}

// kept outside of the small arrays hot path to have inlining without big size growth
return AllocateNewUninitializedArray(length, pinned);
Expand Down