From d8a458170e303307088be70d2fd5fade7ba12f83 Mon Sep 17 00:00:00 2001 From: Ben Adams Date: Thu, 30 May 2019 06:16:17 +0100 Subject: [PATCH] Remove the AggressiveInlining --- .../Runtime/CompilerServices/AsyncValueTaskMethodBuilder.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/AsyncValueTaskMethodBuilder.cs b/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/AsyncValueTaskMethodBuilder.cs index cf5fd2549c92..6fe1dab75d5d 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/AsyncValueTaskMethodBuilder.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/AsyncValueTaskMethodBuilder.cs @@ -41,7 +41,6 @@ public void SetStateMachine(IAsyncStateMachine stateMachine) => AsyncMethodBuilderCore.SetStateMachine(stateMachine, m_task); /// Marks the task as successfully completed. - [MethodImpl(MethodImplOptions.AggressiveInlining)] public void SetResult() { if (m_task is null) @@ -62,7 +61,6 @@ public void SetException(Exception exception) /// Gets the task for this builder. public ValueTask Task { - [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (ReferenceEquals(m_task, System.Threading.Tasks.Task.s_cachedCompleted)) @@ -137,7 +135,6 @@ public void SetStateMachine(IAsyncStateMachine stateMachine) /// Marks the task as successfully completed. /// The result to use to complete the task. - [MethodImpl(MethodImplOptions.AggressiveInlining)] public void SetResult(TResult result) { if (m_task is null) @@ -159,7 +156,6 @@ public void SetException(Exception exception) /// Gets the task for this builder. public ValueTask Task { - [MethodImpl(MethodImplOptions.AggressiveInlining)] get { if (ReferenceEquals(s_haveResultSentinel, m_task))