Skip to content

Commit 585dc6b

Browse files
authored
Update summary for MethodImplOptions.AggressiveOptimization (#8024)
1 parent f3dd25c commit 585dc6b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xml/System.Runtime.CompilerServices/MethodImplOptions.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@
143143
</ReturnValue>
144144
<MemberValue>512</MemberValue>
145145
<Docs>
146-
<summary>The method contains a hot path and should be optimized.</summary>
146+
<summary><para>The method contains code that should always be optimized by the just-in-time (JIT) compiler.</para>
147+
<para>Use this attribute if running an unoptimized version of the method has undesirable effects, for instance causing too much overhead or extra memory allocation.</para>
148+
<para>Methods with this attribute may not have optimal code generation. They bypass the first tier of <a href="/dotnet/core/runtime-config/compilation#tiered-compilation">Tiered Compilation</a> and therefore can't benefit from optimizations that rely on tiering, for example, <a href="/dotnet/core/runtime-config/compilation#profile-guided-optimization">Dynamic PGO</a> or optimizations based on initialized classes.</para></summary>
147149
</Docs>
148150
</Member>
149151
<Member MemberName="ForwardRef">

0 commit comments

Comments
 (0)