Skip to content
Closed
Changes from all commits
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
10 changes: 10 additions & 0 deletions src/libraries/System.Private.CoreLib/src/System/Net/WebUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,12 @@ private static int IndexOfHtmlEncodingChar(ReadOnlySpan<char> input)

#region UrlDecode implementation

// Marking UrlDecodeInternal noinline to work around
// a jit issue where inlining this method may cause
// key inlinees to not be inlined
//
[return: NotNullIfNotNull(nameof(value))]
[MethodImpl(MethodImplOptions.NoInlining)]
private static string? UrlDecodeInternal(string? value, Encoding encoding)
{
if (string.IsNullOrEmpty(value))
Expand Down Expand Up @@ -506,7 +511,12 @@ private static int IndexOfHtmlEncodingChar(ReadOnlySpan<char> input)
return helper.GetString();
}

// Marking UrlDecodeInternal noinline to work around
// a jit issue where inlining this method may cause
// key inlinees to not be inlined
//
[return: NotNullIfNotNull(nameof(bytes))]
[MethodImpl(MethodImplOptions.NoInlining)]
private static byte[]? UrlDecodeInternal(byte[]? bytes, int offset, int count)
{
if (!ValidateUrlEncodingParameters(bytes, offset, count))
Expand Down
Loading