From c35e9ea931c0d19f9089a9bb58c42b348ebcd859 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Mon, 4 Aug 2025 16:13:15 +0100 Subject: [PATCH 1/3] Use nint for native-sized integers in Interlocked Related: https://github.com/dotnet/runtime/pull/118336 --- xml/System.Threading/Interlocked.xml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/xml/System.Threading/Interlocked.xml b/xml/System.Threading/Interlocked.xml index 9c97cae3482..9d7b8635b70 100644 --- a/xml/System.Threading/Interlocked.xml +++ b/xml/System.Threading/Interlocked.xml @@ -858,10 +858,10 @@ - The destination , whose value is compared with the value of and possibly replaced by . - The that replaces the destination value if the comparison results in equality. - The that is compared to the value at . - Compares two platform-specific handles or pointers for equality and, if they are equal, replaces the first one, as an atomic operation. + The destination, whose value is compared with the value of and possibly replaced by . + The value that replaces the destination value if the comparison results in equality. + The value that is compared to the value at . + Compares two native-sized signed integers for equality and, if they are equal, replaces the first one, as an atomic operation. The original value in . - The destination , whose value is compared with the value of and possibly replaced by . - The that replaces the destination value if the comparison results in equality. - The that is compared to the value at . - Compares two platform-specific handles or pointers for equality and, if they are equal, replaces the first one, as an atomic operation. + The destination, whose value is compared with the value of and possibly replaced by . + The value that replaces the destination value if the comparison results in equality. + The value that is compared to the value at . + Compares two native-sized unsigned integers for equality and, if they are equal, replaces the first one, as an atomic operation. The original value in . To be added. The address of is a pointer. @@ -1919,7 +1919,7 @@ If `comparand` and the value in `location1` are equal by reference, then `value` The variable to set to the specified value. The value to which the parameter is set. - Sets a platform-specific handle or pointer to a specified value and returns the original value, as an atomic operation. + Sets a native-sized signed integer to a specified value and returns the original value, as an atomic operation. The original value of . To be added. The address of is a pointer. @@ -2274,7 +2274,7 @@ If `comparand` and the value in `location1` are equal by reference, then `value` The variable to set to the specified value. The value to which the parameter is set. - Sets a platform-specific handle or pointer to a specified value and returns the original value, as an atomic operation. + Sets a native-sized unsigned integer to a specified value and returns the original value, as an atomic operation. The original value of . To be added. The address of is a pointer. From f2b54e69d3ec693c31fa19e529b51d75f360d893 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Tue, 5 Aug 2025 16:08:33 +0100 Subject: [PATCH 2/3] Update `MemberSignature` --- xml/System.Threading/Interlocked.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xml/System.Threading/Interlocked.xml b/xml/System.Threading/Interlocked.xml index 9d7b8635b70..b84e65de17b 100644 --- a/xml/System.Threading/Interlocked.xml +++ b/xml/System.Threading/Interlocked.xml @@ -807,7 +807,7 @@ - + @@ -1216,7 +1216,7 @@ If `comparand` and the object in `location1` are equal by reference, then `value - + @@ -1867,7 +1867,7 @@ If `comparand` and the value in `location1` are equal by reference, then `value` - + @@ -2238,7 +2238,7 @@ If `comparand` and the value in `location1` are equal by reference, then `value` - + From 3a221446a1a07eae688871d46edb48197cd067da Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Tue, 5 Aug 2025 20:40:15 +0100 Subject: [PATCH 3/3] Revert "Update `MemberSignature`" This reverts commit f2b54e69d3ec693c31fa19e529b51d75f360d893. --- xml/System.Threading/Interlocked.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xml/System.Threading/Interlocked.xml b/xml/System.Threading/Interlocked.xml index b84e65de17b..9d7b8635b70 100644 --- a/xml/System.Threading/Interlocked.xml +++ b/xml/System.Threading/Interlocked.xml @@ -807,7 +807,7 @@ - + @@ -1216,7 +1216,7 @@ If `comparand` and the object in `location1` are equal by reference, then `value - + @@ -1867,7 +1867,7 @@ If `comparand` and the value in `location1` are equal by reference, then `value` - + @@ -2238,7 +2238,7 @@ If `comparand` and the value in `location1` are equal by reference, then `value` - +