Skip to content

Commit

Permalink
Revert to only those with diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo committed Jul 14, 2024
1 parent 5ab200c commit 31f5850
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/libraries/System.Private.CoreLib/src/System/Array.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2258,7 +2258,7 @@ public static bool TrueForAll<T>(T[] array, Predicate<T> match)
0X7FFFFFC7;

// Private value type used by the Sort methods.
private readonly struct SorterObjectArray
private readonly ref struct SorterObjectArray
{
private readonly object[] keys;
private readonly object?[]? items;
Expand Down Expand Up @@ -2475,7 +2475,7 @@ private void InsertionSort(int lo, int hi)
// Private value used by the Sort methods for instances of Array.
// This is slower than the one for Object[], since we can't use the JIT helpers
// to access the elements. We must use GetValue & SetValue.
private readonly struct SorterGenericArray
private readonly ref struct SorterGenericArray
{
private readonly Array keys;
private readonly Array? items;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ internal unsafe bool WriteEvent(ref EventDescriptor eventDescriptor, IntPtr even
}

/// <summary>Workaround for inability to stackalloc object[EtwAPIMaxRefObjCount == 8].</summary>
private struct EightObjects
private ref struct EightObjects
{
internal object? _arg0;
#pragma warning disable CA1823, CS0169, IDE0051, IDE0044
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace System.Diagnostics.Tracing
///
/// To get the value of a property quickly, use a delegate produced by <see cref="GetPropertyGetter(PropertyInfo)"/>.
/// </summary>
internal readonly unsafe struct PropertyValue
internal readonly unsafe ref struct PropertyValue
{
/// <summary>
/// Union of well-known value types, to avoid boxing those types.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace System.Reflection.PortableExecutable
///
/// Only methods that are needed to read PE headers are implemented.
/// </summary>
internal readonly struct PEBinaryReader
internal readonly ref struct PEBinaryReader
{
private readonly long _startOffset;
private readonly long _maxOffset;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ public void InitializeFrom(SymbolicRegexMatcher<TSet> matcher, MatchingState<TSe

/// <summary>Represents a current state in a DFA or NFA graph walk while processing a regular expression.</summary>
/// <remarks>This is a discriminated union between a DFA state and an NFA state. One and only one will be non-null.</remarks>
private struct CurrentState
private ref struct CurrentState
{
/// <summary>Initializes the state as a DFA state.</summary>
public CurrentState(MatchingState<TSet> dfaState)
Expand Down

0 comments on commit 31f5850

Please sign in to comment.