Skip to content

Commit 502d8a9

Browse files
Update SuppressGCTransitionAttribute.xml (dotnet#9433)
* Update SuppressGCTransitionAttribute.xml Add note about exceptions being thrown at different times when this attribute is applied. --------- Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
1 parent 79861c9 commit 502d8a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xml/System.Runtime.InteropServices/SuppressGCTransitionAttribute.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ This attribute is ignored if applied to a method without the <xref:System.Runtim
5151
* Immediate runtime termination.
5252
* Data corruption.
5353
54+
Applying this attribute can cause the P/Invoke export to be bound earlier as a side-effect of the calling method being JIT compiled. <xref:System.EntryPointNotFoundException> or other exceptions might be thrown earlier than when the attribute is not applied.
55+
5456
]]></format>
5557
</remarks>
5658
</Docs>

0 commit comments

Comments
 (0)