File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
System.Private.CoreLib/src/System/Threading
System.Threading.Thread/ref Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -337,7 +337,7 @@ public void SetCompressedStack(CompressedStack stack)
337
337
public static long VolatileRead ( ref long address ) => Volatile . Read ( ref address ) ;
338
338
public static IntPtr VolatileRead ( ref IntPtr address ) => Volatile . Read ( ref address ) ;
339
339
[ return : NotNullIfNotNull ( "address" ) ]
340
- public static object ? VolatileRead ( ref object ? address ) => Volatile . Read ( ref address ) ;
340
+ public static object ? VolatileRead ( [ NotNullIfNotNull ( "address" ) ] ref object ? address ) => Volatile . Read ( ref address ) ;
341
341
[ CLSCompliant ( false ) ]
342
342
public static sbyte VolatileRead ( ref sbyte address ) => Volatile . Read ( ref address ) ;
343
343
public static float VolatileRead ( ref float address ) => Volatile . Read ( ref address ) ;
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ private struct VolatileObject { public volatile object? Value; }
219
219
[ Intrinsic ]
220
220
[ NonVersionable ]
221
221
[ return : NotNullIfNotNull ( "location" ) ]
222
- public static T Read < T> ( ref T location ) where T : class ? =>
222
+ public static T Read< T> ( [ NotNullIfNotNull ( "location" ) ] ref T location) where T : class ? =>
223
223
Unsafe . As < T > ( Unsafe . As < T , VolatileObject > ( ref location ) . Value ) ;
224
224
225
225
[ Intrinsic ]
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public void Suspend() { }
103
103
public static long VolatileRead ( ref long address ) { throw null ; }
104
104
public static System . IntPtr VolatileRead ( ref System . IntPtr address ) { throw null ; }
105
105
[ return : System . Diagnostics . CodeAnalysis . NotNullIfNotNullAttribute ( "address" ) ]
106
- public static object ? VolatileRead ( ref object ? address ) { throw null ; }
106
+ public static object ? VolatileRead ( [ System . Diagnostics . CodeAnalysis . NotNullIfNotNullAttribute ( "address" ) ] ref object ? address ) { throw null ; }
107
107
[ System . CLSCompliantAttribute ( false ) ]
108
108
public static sbyte VolatileRead ( ref sbyte address ) { throw null ; }
109
109
public static float VolatileRead ( ref float address ) { throw null ; }
Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ public static partial class Volatile
478
478
[ System . CLSCompliantAttribute ( false ) ]
479
479
public static System . UIntPtr Read ( ref System . UIntPtr location ) { throw null ; }
480
480
[ return : System . Diagnostics . CodeAnalysis . NotNullIfNotNullAttribute ( "location" ) ]
481
- public static T Read < T > ( ref T location ) where T : class ? { throw null ; }
481
+ public static T Read < T > ( [ System . Diagnostics . CodeAnalysis . NotNullIfNotNullAttribute ( "location" ) ] ref T location ) where T : class ? { throw null ; }
482
482
public static void Write ( ref bool location , bool value ) { }
483
483
public static void Write ( ref byte location , byte value ) { }
484
484
public static void Write ( ref double location , double value ) { }
You can’t perform that action at this time.
0 commit comments