Skip to content

Commit f6aa21b

Browse files
committed
removed NoInlining in right places
1 parent 2183f87 commit f6aa21b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncHelpers.CoreCLR.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ private static unsafe void TransparentAwaitValueTask(ValueTask valueTask)
384384

385385
// same as above, but with continuation context capture.
386386
[BypassReadyToRun]
387-
[MethodImpl(MethodImplOptions.Async)]
387+
[MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.Async)]
388388
private static unsafe void AwaitValueTaskSource(object source, short token)
389389
{
390390
ref RuntimeAsyncAwaitState state = ref t_runtimeAsyncAwaitState;
@@ -416,7 +416,7 @@ private static unsafe void AwaitValueTaskSource(object source, short token)
416416
}
417417

418418
[BypassReadyToRun]
419-
[MethodImpl(MethodImplOptions.Async)]
419+
[MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.Async)]
420420
private static unsafe void TransparentAwaitValueTaskOfT<T>(ValueTask<T> valueTask)
421421
{
422422
ref RuntimeAsyncAwaitState state = ref t_runtimeAsyncAwaitState;

src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncHelpers.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public static void Await(Task task)
100100
/// <param name="task">The value task to await.</param>
101101
[Intrinsic]
102102
[BypassReadyToRun]
103-
[MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.Async)]
103+
[MethodImpl(MethodImplOptions.Async)]
104104
[StackTraceHidden]
105105
public static T Await<T>(ValueTask<T> task)
106106
{
@@ -127,7 +127,7 @@ public static T Await<T>(ValueTask<T> task)
127127
/// <param name="task">The task to await.</param>
128128
[Intrinsic]
129129
[BypassReadyToRun]
130-
[MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.Async)]
130+
[MethodImpl(MethodImplOptions.Async)]
131131
[StackTraceHidden]
132132
public static void Await(ValueTask task)
133133
{

0 commit comments

Comments
 (0)