Skip to content

Inconsistent inlining between Span.ToArray and ReadOnlySpan.ToArray #119713

@MihaZupan

Description

@MihaZupan

It's odd that Span.ToArray is marked AggressiveInlining but ReadOnlySpan.ToArray isn't.
This is the only shared helper where they differ in this way.

Seems to have snuck in during dotnet/corefx#26667

/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public T[] ToArray()

/// </summary>
public T[] ToArray()

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Runtimeneeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsideration

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions