-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Description
Every now and then issue URLs are written into the code, for example to describe a workaround around a certain bug.
This creates remnants in the code. I have written a small tool, which uses the GitHub API to find all URLs and checks whether this is a closed issue and then exports the whole thing to me as Markdown 1.
But I am not sure if a certain comment can be removed because the corresponding issue was closed.
I think we should just look at the following code parts and check that.
Find Closed Issues Tool Results (18.01.2022)
- Fix the disabled tests in the System V struct passing tests when Issue #2075 is resolved #4680
- The original issue was reopened to address the disabled tests
File src/tests/JIT/Methodical/structs/systemvbringup/structpinvoketests.cs (File Position 3633-3678)
runtime/src/tests/JIT/Methodical/structs/systemvbringup/structpinvoketests.cs
Lines 171 to 175 in f04a242
| public long w; | |
| } | |
| /* These tests are not working on non Windows CoreCLR. Enable this when https://github.com/dotnet/runtime/issues/4680 is resolved. | |
| [StructLayout(LayoutKind.Sequential)] | |
| public struct S28 |
File src/coreclr/pal/src/include/pal/mutex.hpp (File Position 5384-5430)
runtime/src/coreclr/pal/src/include/pal/mutex.hpp
Lines 122 to 126 in f04a242
| // - Temporarily disabling usage of pthread process-shared mutexes on ARM/ARM64 due to functional issues that cannot easily be | |
| // detected with code due to hangs. See https://github.com/dotnet/runtime/issues/6014. | |
| // - On FreeBSD, pthread process-shared robust mutexes cannot be placed in shared memory mapped independently by the processes | |
| // involved. See https://github.com/dotnet/runtime/issues/10519. |
File src/libraries/Microsoft.VisualBasic.Core/src/Microsoft/VisualBasic/CompilerServices/Operators.vb (File Position 225458-225503)
Lines 4592 to 4596 in f04a242
| End Function | |
| <MethodImpl(MethodImplOptions.NoInlining)> ' To work around https://github.com/dotnet/runtime/issues/7141 | |
| Private Shared Function ModSByte(ByVal left As SByte, ByVal right As SByte) As Object | |
| Return left Mod right |
- Extra bounds checks are being generated in common span usage pattern #10950
- Follow-up issue: Remove
IsEmptyworkaround inSpanandReadOnlySpan#64514
- Follow-up issue: Remove
File src/libraries/System.Private.CoreLib/src/System/ReadOnlySpan.cs (File Position 6802-6848)
runtime/src/libraries/System.Private.CoreLib/src/System/ReadOnlySpan.cs
Lines 154 to 158 in f04a242
| { | |
| [NonVersionable] | |
| get => 0 >= (uint)_length; // Workaround for https://github.com/dotnet/runtime/issues/10950 | |
| } | |
File src/libraries/System.Private.CoreLib/src/System/Span.cs (File Position 7264-7310)
runtime/src/libraries/System.Private.CoreLib/src/System/Span.cs
Lines 159 to 163 in f04a242
| { | |
| [NonVersionable] | |
| get => 0 >= (uint)_length; // Workaround for https://github.com/dotnet/runtime/issues/10950 | |
| } | |
- Performance Regression: GetCustomAttributes() Allocations Increased from netcoreapp2.1 #11637
- Comment documents reasoning. No follow-up necessary.
File src/coreclr/System.Private.CoreLib/src/System/Reflection/RuntimeCustomAttributeData.cs (File Position 59996-60042)
runtime/src/coreclr/System.Private.CoreLib/src/System/Reflection/RuntimeCustomAttributeData.cs
Lines 1329 to 1333 in f04a242
| { | |
| // Resolve method ctor token found in decorated decoratedModule scope | |
| // See https://github.com/dotnet/runtime/issues/11637 for why we fast-path non-generics here (fewer allocations) | |
| if (attributeType.IsGenericType) | |
| { |
- EnsureValidDataType should reject whitespaces in DataTypeAttribute.CustomDataType property #15690
- Comment documents reasoning. No follow-up necessary.
File src/libraries/System.ComponentModel.Annotations/tests/System/ComponentModel/DataAnnotations/DataTypeAttributeTests.cs (File Position 3236-3283)
Lines 72 to 76 in f04a242
| // .NET Core fixed a bug where whitespace strings were allowed as CustomDataType. | |
| // See https://github.com/dotnet/runtime/issues/15690. | |
| yield return new object[] { " ", PlatformDetection.IsNetFramework }; | |
| } |
- Add a clean way to cancel a long-running Socket operation (e.g. accept or connect) #16236
- Comment documents reasoning. No follow-up necessary.
File src/mono/mono/utils/mono-threads-windows.c (File Position 4766-4813)
runtime/src/mono/mono/utils/mono-threads-windows.c
Lines 111 to 115 in f04a242
| // same resource that was part of the cancelation. Current implementation of | |
| // .NET Framework and .NET Core currently don't support the ability to abort a thread | |
| // blocked on sync IO calls, see https://github.com/dotnet/runtime/issues/16236. | |
| // Since there is no solution covering all scenarios aborting blocking syscall this | |
| // will be on best effort and there might still be a slight risk that the blocking call |
File src/libraries/System.IO.IsolatedStorage/src/System/IO/IsolatedStorage/IsolatedStorageFile.cs (File Position 1526-1572)
runtime/src/libraries/System.IO.IsolatedStorage/src/System/IO/IsolatedStorage/IsolatedStorageFile.cs
Lines 38 to 42 in f04a242
| internal IsolatedStorageFile(IsolatedStorageScope scope) | |
| { | |
| // Evidence isn't currently available: https://github.com/dotnet/runtime/issues/18208 | |
| // public static IsolatedStorageFile GetStore(IsolatedStorageScope scope, Evidence domainEvidence, Type domainEvidenceType, Evidence assemblyEvidence, Type assemblyEvidenceType) { return default(IsolatedStorageFile); } | |
- ParameterInfo.HasDefaultValue throws System.FormatException on optional DateTime parameter #18844
- Follow-up issue: Remove
ParameterInfo.HasDefaultValueworkaround #65233
- Follow-up issue: Remove
File src/libraries/Common/src/Extensions/ParameterDefaultValue/ParameterDefaultValue.netstandard.cs (File Position 782-828)
Lines 22 to 26 in f04a242
| catch (FormatException) when (parameter.ParameterType == typeof(DateTime)) | |
| { | |
| // Workaround for https://github.com/dotnet/runtime/issues/18844 | |
| // If HasDefaultValue throws FormatException for DateTime | |
| // we expect it to have default value |
- Tuple.IStructuralComparable/Equatable throws NRE #19265
- Comment documents reasoning. No follow-up necessary.
File src/libraries/System.Runtime/tests/System/TupleTests.cs (File Position 11829-11875)
runtime/src/libraries/System.Runtime/tests/System/TupleTests.cs
Lines 218 to 222 in f04a242
| { | |
| // This was not fixed in order to be compatible with the .NET Framework and Xamarin. | |
| // See https://github.com/dotnet/runtime/issues/19265 | |
| IStructuralEquatable equatable = (IStructuralEquatable)Tuple; | |
| Assert.Throws<NullReferenceException>(() => equatable.Equals(Tuple, null)); |
- ValueTuple.IStructuralComparable/Equatable throws NRE instead of ArgumentNullException #19275
- Comment documents reasoning. No follow-up necessary.
File src/libraries/System.ValueTuple/tests/ValueTupleTests.cs (File Position 12672-12718)
runtime/src/libraries/System.ValueTuple/tests/ValueTupleTests.cs
Lines 223 to 227 in f04a242
| { | |
| // This was not fixed in order to be compatible with the .NET Framework and Xamarin. | |
| // https://github.com/dotnet/runtime/issues/19275 | |
| IStructuralEquatable equatable = (IStructuralEquatable)valueTuple; | |
| if (valueTuple is ValueTuple) |
- Console.ReadLine() is blocked in Linux even though the StandardInput of the process has been disposed #19277
- Comment documents reasoning. No follow-up necessary.
File src/libraries/System.Diagnostics.Process/tests/ProcessStreamReadTests.cs (File Position 18733-18780)
runtime/src/libraries/System.Diagnostics.Process/tests/ProcessStreamReadTests.cs
Lines 401 to 405 in f04a242
| public void TestEOFReceivedWhenStdInClosed() | |
| { | |
| // This is the test for the fix of https://github.com/dotnet/runtime/issues/19277. | |
| // | |
| // Summary of the issue: |
- Vector3GetHashCodeTest AV'ing on Windows release #20080
- Follow-up issue was already open: GT_FIELD of Vector3 has a MACK_Ind context in fgMorphField #7405
File src/tests/JIT/SIMD/Vector3GetHash.cs (File Position 379-425)
runtime/src/tests/JIT/SIMD/Vector3GetHash.cs
Lines 5 to 9 in f04a242
| // It exposed a bug in morph, in which a SIMD field was being morphed in | |
| // a MACK_Ind context, even though it was under a GT_IND(G_ADDR()). | |
| // This was https://github.com/dotnet/runtime/issues/20080, and was "fixed" with | |
| // https://github.com/dotnet/coreclr/pull/9496 and a new issue, | |
| // https://github.com/dotnet/runtime/issues/7405, has been filed to track the underlying unexpected |
- [Bug Suspected] ImageFormat's "ToString" comparation error #20332
- Comment documents reasoning. No follow-up necessary.
File src/libraries/System.Drawing.Common/tests/Imaging/ImageFormatTests.cs (File Position 5736-5782)
runtime/src/libraries/System.Drawing.Common/tests/Imaging/ImageFormatTests.cs
Lines 94 to 98 in f04a242
| } | |
| [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "Bug fix not in NETFX, https://github.com/dotnet/runtime/issues/20332")] | |
| [ConditionalTheory(Helpers.IsDrawingSupported)] | |
| [MemberData(nameof(ImageFromFileToStringTestData))] |
- System.ServiceProcess.Tests.ServiceBaseTests.TestOnStartThenStop failed in CI #23247
- Comment documents reasoning. No follow-up necessary.
File src/libraries/System.ServiceProcess.ServiceController/tests/System.ServiceProcess.ServiceController.TestService/TestServiceInstaller.cs (File Position 6751-6797)
Lines 145 to 149 in f04a242
| { | |
| // The Service exists at this point, but OpenService is failing, possibly because its being invoked concurrently for another service. | |
| // https://github.com/dotnet/runtime/issues/23247 | |
| if (svc.Status != ServiceControllerStatus.Stopped) | |
| { |
- Unix file enumerator isn't thread safe #24295
- Comment documents reasoning. No follow-up necessary.
File src/libraries/System.IO.FileSystem/tests/Directory/EnumerableTests.cs (File Position 586-633)
runtime/src/libraries/System.IO.FileSystem/tests/Directory/EnumerableTests.cs
Lines 14 to 18 in f04a242
| // we don't guarantee thread safety of enumerators in general, but on Windows we | |
| // currently are thread safe, and this test will help ensure that if we change that | |
| // it's a conscious decision. Discussed in https://github.com/dotnet/runtime/issues/24295. | |
| [PlatformSpecific(TestPlatforms.Windows)] | |
| public void FileEnumeratorIsThreadSafe() |
- Regex fails to accept pattern that it probably should. #24759
- Follow-up issue: Review skipped test case for regex scanner with \c[ pattern #65931
File src/libraries/System.Text.RegularExpressions/tests/Regex.Groups.Tests.cs (File Position 42960-43006)
runtime/src/libraries/System.Text.RegularExpressions/tests/Regex.Groups.Tests.cs
Lines 391 to 395 in f04a242
| yield return new object[] { engine, null, @"(cat)(\cz*)(dog)", "asdlkcat\u001adogiwod", RegexOptions.None, new string[] { "cat\u001adog", "cat", "\u001a", "dog" } }; | |
| if (!PlatformDetection.IsNetFramework) // missing fix for https://github.com/dotnet/runtime/issues/24759 | |
| { | |
| yield return new object[] { engine, null, @"(cat)(\c[*)(dog)", "asdlkcat\u001bdogiwod", RegexOptions.None, new string[] { "cat\u001bdog", "cat", "\u001b", "dog" } }; |
- System.Configuration.ConfigurationManager SettingElement Null Reference Exception #25369
- Comment documents reasoning. No follow-up necessary.
File src/libraries/System.Configuration.ConfigurationManager/tests/System/Configuration/SettingElementTests.cs (File Position 1871-1917)
Lines 53 to 57 in f04a242
| } | |
| [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, ".NET Framework does not have the fix for https://github.com/dotnet/runtime/issues/25369")] | |
| [Fact] | |
| public void DefaultConstructorEqualHashCodes() |
- BeginConnect_EndPoint_AddressFamily_Throws_NotSupported test fails deterministically on netfx on RS4 #26062
- Comment documents reasoning. No follow-up necessary.
File src/libraries/System.Net.Sockets/tests/FunctionalTests/ArgumentValidationTests.cs (File Position 34725-34771)
runtime/src/libraries/System.Net.Sockets/tests/FunctionalTests/ArgumentValidationTests.cs
Lines 832 to 836 in f04a242
| { | |
| // Unlike other tests that reuse a static Socket instance, this test avoids doing so | |
| // to work around a behavior of .NET 4.7.2. See https://github.com/dotnet/runtime/issues/26062 | |
| // for more details. | |
- XmlReader.Create throws IndexOutOfRangeException #28615
- Comment documents reasoning. No follow-up necessary.
File src/libraries/System.Private.Xml/tests/XmlReader/Tests/ReaderEncodingTests.cs (File Position 342-388)
runtime/src/libraries/System.Private.Xml/tests/XmlReader/Tests/ReaderEncodingTests.cs
Lines 8 to 12 in f04a242
| { | |
| /// <summary> | |
| /// This class is not completely testing XmlReader Encoding, it has a regression tests for the fix of the issue: https://github.com/dotnet/runtime/issues/28615 | |
| /// which reported due to fuzzy testing. Defect happening while encoding byte array, which includes a surrogate char and an invalid char. | |
| /// </summary> |
- Possible NRE in BinaryFormatterWriter.WriteObject( ... ) method #31402
- The issue was closed as won't-fix
- PR to update the comment: Update stale comments that reference GitHub issues #65932
File src/libraries/System.Runtime.Serialization.Formatters/src/System/Runtime/Serialization/Formatters/Binary/BinaryFormatterWriter.cs (File Position 5028-5074)
Lines 118 to 122 in f04a242
| int objectId = (int)nameInfo._objectId; | |
| Debug.Assert(typeNameInfo != null); // Explicitly called with null, asserting for now https://github.com/dotnet/runtime/issues/31402 | |
| string? objectName = objectId < 0 ? | |
| typeNameInfo.NIname : // Nested Object |
File eng/codeOptimization.targets (File Position 723-769)
runtime/eng/codeOptimization.targets
Lines 8 to 12 in f04a242
| across many of our assemblies on Mac, so disable | |
| IBCMerge optimizations on Mac for now to unblock the offical build. | |
| See issue https://github.com/dotnet/runtime/issues/33303 | |
| --> | |
| <IsEligibleForNgenOptimization Condition="'$(TargetOS)' == 'OSX' or '$(TargetsMobile)' == 'true'">false</IsEligibleForNgenOptimization> |
- GCC warns when compiling the JIT: too small to hold all values of regNumber #33541
- Comment documents reasoning. No follow-up necessary.
File src/coreclr/jit/CMakeLists.txt (File Position 388-434)
runtime/src/coreclr/jit/CMakeLists.txt
Lines 7 to 11 in f04a242
| # Since there is no better / specific suppression available for these core warnings, we disable | |
| # warn-as-error (-Werror) for JIT in this case. This issue has been fixed in gcc 11. | |
| # See https://github.com/dotnet/runtime/issues/33541 | |
| if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 11.0) | |
| add_compile_options(-Wno-error) |
- CollectionExtensions: Duplicate type in System.Collections and M.E.DependencyModel #34420
- Issue was closed as Won't Fix
- Comment was already updated when this part of the infrastructure was being refactored
- New location/comment:
runtime/src/libraries/testPackages/build/packageTest.targets
Lines 30 to 32 in 331823f
<!-- Type duplicated: https://github.com/dotnet/runtime/issues/34420 --> <IgnoredTypes Include="System.Collections.Generic.CollectionExtensions" /> </ItemGroup>
File src/libraries/shims/generated/Directory.Build.props (File Position 1110-1156)
runtime/src/libraries/shims/generated/Directory.Build.props
Lines 23 to 27 in f04a242
| <ItemGroup> | |
| <!-- reference everything but self --> | |
| <!-- Type duplicated in Microsoft.Extensions.DependencyModel. Exclude it for now: https://github.com/dotnet/runtime/issues/34420 --> | |
| <ReferencePath | |
| Include="$(NetCoreAppCurrentRefPath)*.dll" |
- JIT\opt\OSR\tailrecursetry\tailrecursetry.cmd fails with COMPlus_FastTailCalls=0 #35687
- Follow-up issue: Review workaround for TailCallStress mode #65934
File src/tests/JIT/opt/OSR/tailrecursetry.csproj (File Position 260-306)
runtime/src/tests/JIT/opt/OSR/tailrecursetry.csproj
Lines 5 to 9 in f04a242
| <Optimize>True</Optimize> | |
| <!-- This test currently fails for TailcallStress. Disable for JIT stress modes until this is fixed. | |
| Issue: https://github.com/dotnet/runtime/issues/35687 | |
| --> | |
| <JitOptimizationSensitive>true</JitOptimizationSensitive> |
File src/libraries/System.Formats.Cbor/src/System/Formats/Cbor/HalfHelpers.cs (File Position 374-420)
runtime/src/libraries/System.Formats.Cbor/src/System/Formats/Cbor/HalfHelpers.cs
Lines 9 to 13 in f04a242
| { | |
| // Temporarily implements missing APIs for System.Half | |
| // Remove class once https://github.com/dotnet/runtime/issues/38288 has been addressed | |
| internal static class HalfHelpers | |
| { |
- [ARM64] Performance regression: Utf8Encoding #41699
- Original issue was reopened
File src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf16Utility.Validation.cs (File Position 3321-3367)
runtime/src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf16Utility.Validation.cs
Lines 63 to 67 in f04a242
| char* pEndOfInputBuffer = pInputBuffer + (uint)inputLength; | |
| // Per https://github.com/dotnet/runtime/issues/41699, temporarily disabling | |
| // ARM64-intrinsicified code paths. ARM64 platforms may still use the vectorized | |
| // non-intrinsicified 'else' block below. |
- System.Diagnostics.Tests.ProcessStandardConsoleTests.TestChangesInConsoleEncoding test fails on server core #42000
- The issue was closed; this scenario has a known issue
- PR to update the comment: Update stale comments that reference GitHub issues #65932
File src/libraries/System.Diagnostics.Process/tests/ProcessStandardConsoleTests.cs (File Position 1362-1408)
runtime/src/libraries/System.Diagnostics.Process/tests/ProcessStandardConsoleTests.cs
Lines 33 to 37 in f04a242
| // Don't test this on Windows containers, as the test is currently failing | |
| // cf. https://github.com/dotnet/runtime/issues/42000 | |
| if (!OperatingSystem.IsWindows() || PlatformDetection.IsInContainer) | |
| { |
File src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/NativeRuntimeEventSource.cs (File Position 2889-2935)
Lines 40 to 44 in f04a242
| { | |
| // A simple fix to avoid dependencies brought by this method if event source is disabled via a feature switch. | |
| // Should be reconsidered when https://github.com/dotnet/runtime/issues/43657 is done. | |
| if (!IsSupported) | |
| { |
- Bug in System.IO.Compression.Inflater or the native zlib dependency - invalid distance too far back. #50235
- Follow-up issue: Reconsider tracing functionality when EventSource is disabled #65570
File src/libraries/System.Net.WebSockets/tests/WebSocketDeflateTests.cs (File Position 22006-22053)
runtime/src/libraries/System.Net.WebSockets/tests/WebSocketDeflateTests.cs
Lines 511 to 515 in f04a242
| { | |
| // When running Autobahn Test Suite some tests failed with zlib error "invalid distance too far back". | |
| // Further investigation lead to a bug fix in zlib intel's implementation - https://github.com/dotnet/runtime/issues/50235. | |
| // This test replicates one of the Autobahn tests to make sure this issue doesn't appear again. | |
| byte[][] messages = new[] |