Skip to content

Commit bb2adb8

Browse files
author
Ron Petrusha
authored
Documented some new 4.8 APIs (#2253)
* Documented some new 4.8 APIs * Corrected bad links * Update xml/System.Threading/Interlocked.xml Co-Authored-By: rpetrusha <[email protected]>
1 parent 5930fb6 commit bb2adb8

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

xml/System.Reflection/MethodImplAttributes.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,11 @@
8383
- `NoOptimization`
8484
8585
- `MaxMethodImplVal`
86-
86+
87+
- `SecurityMitigations` (Available starting with .NET Framework 4.8.)
88+
8789
> [!NOTE]
88-
> Locking on the instance or on the type, as with the Synchronized flag, is not recommended for public types, because code other than your own can take locks on public types and instances. This might cause deadlocks or other synchronization problems.
90+
> Locking on the instance or on the type, as with the `Synchronized` flag, is not recommended for public types, because code other than your own can take locks on public types and instances. This might cause deadlocks or other synchronization problems.
8991
9092
]]></format>
9193
</remarks>
@@ -681,7 +683,7 @@
681683
</ReturnValue>
682684
<MemberValue>1024</MemberValue>
683685
<Docs>
684-
<summary>To be added.</summary>
686+
<summary>Specifies that the JIT compiler should look for security mitigation attributes, such as the user-defined <see langword="System.Runtime.CompilerServices.SecurityMitigationsAttribute" />. If found, the JIT compiler applies any related security mitigations. Available starting with .NET Framework 4.8.</summary>
685687
</Docs>
686688
</Member>
687689
<Member MemberName="Synchronized">

xml/System.Runtime.CompilerServices/MethodImplOptions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
</ReturnValue>
323323
<MemberValue>1024</MemberValue>
324324
<Docs>
325-
<summary>To be added.</summary>
325+
<summary>The JIT compiler should look for security mitigation attributes, such as the user-defined <see langword="System.Runtime.CompilerServices.SecurityMitigationsAttribute" />. If found, the JIT compiler applies any related security mitigations. Available starting with .NET Framework 4.8.</summary>
326326
</Docs>
327327
</Member>
328328
<Member MemberName="Synchronized">

xml/System.Threading/Interlocked.xml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,9 +1559,15 @@ This method wraps a call to [FlushProcessWriteBuffers](/windows/desktop/api/proc
15591559
</ReturnValue>
15601560
<Parameters />
15611561
<Docs>
1562-
<summary>To be added.</summary>
1563-
<remarks>To be added.</remarks>
1562+
<summary>Defines a memory fence that blocks speculative execution past this point until pending reads and writes are complete.</summary>
1563+
<remarks>
1564+
<format type="text/markdown"><![CDATA[
1565+
1566+
The `SpeculationBarrier` method defines a memory fence (an `mfence` instruction on x86 and amd64 processors) that blocks *speculative* execution past this point until pending reads and writes are complete.
1567+
1568+
]]></format>
1569+
</remarks>
15641570
</Docs>
15651571
</Member>
15661572
</Members>
1567-
</Type>
1573+
</Type>

0 commit comments

Comments
 (0)