1. 16 8月, 2022 26 次提交
    • D
      [main] Update dependencies from dotnet/linker (#73894) · 86f1fb55
      dotnet-maestro[bot] 提交于
      * Update dependencies from https://github.com/dotnet/linker build 20220812.4
      
      Microsoft.NET.ILLink.Tasks
       From Version 7.0.100-1.22412.3 -> To Version 7.0.100-1.22412.4
      
      * `System.Runtime.Serialization.Json.ReflectionOnly.Tests` - fix linker
      
      .. errors.
      
      ```
      [22:32:27] fail: [FAIL] DataContractJsonSerializerTests.DCJS_VerifyDateTimeForFormatStringDCJsonSerSettings
      [22:32:27] info: System.InvalidOperationException : No set method for property 'UtcDateTime' in type 'System.Runtime.Serialization.DateTimeOffsetAdapter'.
      [22:32:27] info:    at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
      [22:32:27] info:    at DataContractJsonSerializerTests.SerializeAndDeserialize[DateTimeOffset](DateTimeOffset value, String baseline, DataContractJsonSerializerSettings settings, Func`1 serializerFactory, Boolean skipStringCompare)
      [22:32:27] info:    at System.Reflection.MethodInvoker.InterpretedInvoke(Object , Span`1 , BindingFlags )
      [22:32:27] fail: [FAIL] DataContractJsonSerializerTests.DCJS_ClassWithDatetimeOffsetTypeProperty
      [22:32:27] info: System.InvalidOperationException : No set method for property 'UtcDateTime' in type 'System.Runtime.Serialization.DateTimeOffsetAdapter'.
      [22:32:27] info:    at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
      [22:32:27] info:    at DataContractJsonSerializerTests.SerializeAndDeserialize[TypeWithDateTimeOffsetTypeProperty](TypeWithDateTimeOffsetTypeProperty value, String baseline, DataContractJsonSerializerSettings settings, Func`1 serializerFactory, Boolean skipStringCompare)
      [22:32:27] info:    at System.Reflection.MethodInvoker.InterpretedInvoke(Object , Span`1 , BindingFlags )
      ```
      
      * [wasm] System.Runtime.Serialization.Schema.Tests - fix linker errors
      
      ```
        fail: [FAIL] System.Runtime.Serialization.Schema.Tests.ImporterTests.Import(import: Action`1 { Method = Void <Import_MemberData>b__7(System.Runtime.S
      erialization.XsdDataContractImporter), Target = <>c__DisplayClass7_1 { schemaSet = XmlSchemaSet { ... }, typeName = http://schemas.datacontract.org/200
      4/07/System.Runtime.Serialization.Schema.Tests:ImporterTests.SerializableFormatClass } }, codeLength: -1)
        info: System.MissingMethodException : No parameterless constructor defined for type 'Microsoft.CSharp.CSharpCodeProvider'.
        info:    at System.RuntimeType.CreateInstanceMono(Boolean , Boolean )
        info:    at System.RuntimeType.CreateInstanceDefaultCtor(Boolean , Boolean )
        info:    at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions)
        info:    at System.Activator.CreateInstance(Type type, Boolean nonPublic)
        info:    at System.Activator.CreateInstance(Type type)
        info:    at System.CodeDom.Compiler.CompilerInfo.CreateProvider()
        info:    at System.CodeDom.Compiler.CodeDomProvider.CreateProvider(String )
        info:    at System.Runtime.Serialization.Schema.Tests.SchemaUtils.DumpCode(CodeCompileUnit ccu, CodeDomProvider provider)
        info:    at System.Runtime.Serialization.Schema.Tests.ImporterTests.Import(Action`1 import, Int32 codeLength)
        info:    at System.Reflection.MethodInvoker.InterpretedInvoke(Object , Span`1 , BindingFlags )
      ```
      
      * [wasm] System.Runtime.Serialization.Xml.ReflectionOnly.Tests - fix
      
      .. linker errors.
      
      ```
      [02:47:16] fail: [FAIL] DataContractSerializerTests.DCS_MemoryStream_Serialize_UsesBuiltInAdapter
      [02:47:16] info: System.Runtime.Serialization.InvalidDataContractException : No get method for property 'Capacity' in type 'System.Runtime.Serialization.MemoryStreamAdapter'.
      [02:47:16] info:    at System.Runtime.Serialization.DataContracts.DataContract.DataContractCriticalHelper.ThrowInvalidDataContractException(String , Type )
      [02:47:16] info:    at System.Runtime.Serialization.DataContracts.DataContract.DataContractCriticalHelper.ThrowInvalidDataContractException(String )
      [02:47:16] info:    at System.Runtime.Serialization.DataContracts.ClassDataContract.ClassDataContractCriticalHelper.ImportDataMembers()
      [02:47:16] info:    at System.Runtime.Serialization.DataContracts.ClassDataContract.ClassDataContractCriticalHelper..ctor(Type )
      [02:47:16] info:    at System.Runtime.Serialization.DataContracts.ClassDataContract..ctor(Type )
      [02:47:16] info:    at System.Runtime.Serialization.DataContracts.DataContract.DataContractCriticalHelper.CreateDataContract(Type )
      [02:47:16] info:    at System.Runtime.Serialization.DataContracts.DataContract.DataContractCriticalHelper.CreateDataContract(Int32 , RuntimeTypeHandle , Type )
      [02:47:16] info:    at System.Runtime.Serialization.DataContracts.DataContract.DataContractCriticalHelper.GetDataContractSkipValidation(Int32 , RuntimeTypeHandle , Type )
      [02:47:16] info:    at System.Runtime.Serialization.DataContracts.DataContract.GetDataContractSkipValidation(Int32 id, RuntimeTypeHandle typeHandle, Type type)
      [02:47:16] info:    at System.Runtime.Serialization.DataContracts.DataContract.GetDataContract(RuntimeTypeHandle typeHandle, Type type)
      [02:47:16] info:    at System.Runtime.Serialization.DataContracts.DataContract.GetDataContract(Type type)
      [02:47:16] info:    at System.Runtime.Serialization.DataContractSerializer.get_RootContract()
      [02:47:16] info:    at System.Runtime.Serialization.DataContractSerializer.InternalWriteStartObject(XmlWriterDelegator writer, Object graph)
      [02:47:16] info:    at System.Runtime.Serialization.DataContractSerializer.InternalWriteObject(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver)
      [02:47:16] info:    at System.Runtime.Serialization.XmlObjectSerializer.WriteObjectHandleExceptions(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver)
      [02:47:16] info:    at System.Runtime.Serialization.XmlObjectSerializer.WriteObjectHandleExceptions(XmlWriterDelegator writer, Object graph)
      [02:47:16] info:    at System.Runtime.Serialization.XmlObjectSerializer.WriteObject(XmlDictionaryWriter , Object )
      [02:47:16] info:    at System.Runtime.Serialization.XmlObjectSerializer.WriteObject(Stream , Object )
      [02:47:16] info:    at System.Runtime.Serialization.Tests.DataContractSerializerHelper.SerializeAndDeserialize[MemoryStream](MemoryStream value, String baseline, DataContractSerializerSettings settings, Func`1 serializerFactory, Boolean skipStringCompare)
      [02:47:16] info:    at DataContractSerializerTests.<DCS_MemoryStream_Serialize_UsesBuiltInAdapter>g__ValidateObject|240_0(MemoryStream original, String expectedXml, Byte[] expectedData, Int32 expectedPosition, Boolean expectedExposable)
      [02:47:16] info:    at DataContractSerializerTests.DCS_MemoryStream_Serialize_UsesBuiltInAdapter()
      [02:47:16] info:    at System.Reflection.MethodInvoker.InterpretedInvoke(Object , Span`1 , BindingFlags )
      ```
      
      * Fix linker errors - System.Xml.XmlSerializer.ReflectionOnly.Tests
      
      ```
      [02:47:21] fail: [FAIL] XmlSerializerTests.Xml_ImmutableCollections(type: typeof(System.Collections.Immutable.ImmutableArray<int>), collection: [42], createException: null, addException: typeof(System.InvalidOperationException), expectedXml: "<?xml version=\"1.0\" encoding=\"utf-8\"?><ArrayOf"..., exMsg: "Specified method is not supported.")
      [02:47:21] info: System.InvalidOperationException : There was an error generating the XML document.
      [02:47:21] info: ---- System.InvalidOperationException : To be XML serializable, types which inherit from ICollection must have an implementation of Add(System.Int32) at all levels of their inheritance hierarchy. System.Collections.Immutable.ImmutableArray`1[[System.Int32, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] does not implement Add(System.Int32).
      [02:47:21] info:    at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
      [02:47:21] info:    at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle)
      [02:47:21] info:    at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces)
      [02:47:21] info:    at System.Xml.Serialization.XmlSerializer.Serialize(Stream stream, Object o, XmlSerializerNamespaces namespaces)
      [02:47:21] info:    at System.Xml.Serialization.XmlSerializer.Serialize(Stream stream, Object o)
      [02:47:21] info:    at XmlSerializerTests.Serialize[Object](Object value, String baseline, Func`1 serializerFactory, Boolean skipStringCompare, XmlSerializerNamespaces xns)
      [02:47:21] info:    at XmlSerializerTests.Xml_ImmutableCollections(Type type, Object collection, Type createException, Type addException, String expectedXml, String exMsg)
      [02:47:21] info:    at System.Reflection.MethodInvoker.InterpretedInvoke(Object , Span`1 , BindingFlags )
      [02:47:21] info: ----- Inner Stack Trace -----
      [02:47:21] info:    at System.Xml.Serialization.TypeScope.GetDefaultIndexer(Type , String )
      [02:47:21] info:    at System.Xml.Serialization.TypeScope.GetCollectionElementType(Type , String )
      [02:47:21] info:    at System.Xml.Serialization.TypeScope.ImportTypeDesc(Type , MemberInfo , Boolean )
      [02:47:21] info:    at System.Xml.Serialization.TypeScope.GetTypeDesc(Type , MemberInfo , Boolean , Boolean )
      [02:47:21] info:    at System.Xml.Serialization.TypeScope.GetTypeDesc(Type , MemberInfo , Boolean )
      [02:47:21] info:    at System.Xml.Serialization.ModelScope.GetTypeModel(Type , Boolean )
      [02:47:21] info:    at System.Xml.Serialization.ModelScope.GetTypeModel(Type )
      [02:47:21] info:    at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(Type , XmlRootAttribute , String )
      [02:47:21] info:    at System.Xml.Serialization.XmlSerializer.GenerateXmlTypeMapping(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, String defaultNamespace)
      [02:47:21] info:    at System.Xml.Serialization.XmlSerializer.GetMapping()
      [02:47:21] info:    at System.Xml.Serialization.XmlSerializer.SerializeUsingReflection(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
      [02:47:21] info:    at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
      ```
      
      * [wasm] Fix trimming errors in event-pipe sample
      
      `IL2121` was disabled for samples, but the project discard the value of
      `$(NoWarn)`, thus missing the warning code.
      
      ```
      ILLink : Trim analysis error IL2121: System.Diagnostics.Tracing.EventSource: Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2113'. Consi
      der removing the unused warning suppression. [/workspaces/runtime/src/mono/sample/wasm/browser-eventpipe/Wasm.Browser.EventPipe.Sample.csproj]
      ILLink : Trim analysis error IL2121: System.Diagnostics.Tracing.EventSource: Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2115'. Consi
      der removing the unused warning suppression. [/workspaces/runtime/src/mono/sample/wasm/browser-eventpipe/Wasm.Browser.EventPipe.Sample.csproj]
      /workspaces/runtime/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs(885,9): Trim analysis error IL2121: System.Diagn
      ostics.Tracing.EventSource.WriteEvent(Int32, Int64, Int64, Int64): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2026'. Consider removi
      ng the unused warning suppression. [/workspaces/runtime/src/mono/sample/wasm/browser-eventpipe/Wasm.Browser.EventPipe.Sample.csproj]
      /workspaces/runtime/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs(1067,9): Trim analysis error IL2121: System.Diag
      nostics.Tracing.EventSource.WriteEvent(Int32, Int32, String): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2026'. Consider removing th
      e unused warning suppression. [/workspaces/runtime/src/mono/sample/wasm/browser-eventpipe/Wasm.Browser.EventPipe.Sample.csproj]
      /workspaces/runtime/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs(955,9): Trim analysis error IL2121: System.Diagn
      ostics.Tracing.EventSource.WriteEvent(Int32, String, String, String): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2026'. Consider rem
      oving the unused warning suppression. [/workspaces/runtime/src/mono/sample/wasm/browser-eventpipe/Wasm.Browser.EventPipe.Sample.csproj]
      /workspaces/runtime/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs(927,9): Trim analysis error IL2121: System.Diagnostics.Tracing.EventSource.WriteEvent(Int32, String, String): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2026'. Consider removing the unused warning suppression. [/workspaces/runtime/src/mono/sample/wasm/browser-eventpipe/Wasm.Browser.EventPipe.Sample.csproj]
      /workspaces/runtime/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs(796,9): Trim analysis error IL2121: System.Diagnostics.Tracing.EventSource.WriteEvent(Int32, Int32): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2026'. Consider removing the unused warning suppression. [/workspaces/runtime/src/mono/sample/wasm/browser-eventpipe/Wasm.Browser.EventPipe.Sample.csproj]
      /workspaces/runtime/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs(1366,13): Trim analysis error IL2121: System.Diagnostics.Tracing.EventSource.WriteEvent(Int32, Object[]): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2112'. Consider removing the unused warning suppression. [/workspaces/runtime/src/mono/sample/wasm/browser-eventpipe/Wasm.Browser.EventPipe.Sample.csproj]
      /workspaces/runtime/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs(904,9): Trim analysis error IL2121: System.Diagnostics.Tracing.EventSource.WriteEvent(Int32, String): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2026'. Consider removing the unused warning suppression. [/workspaces/runtime/src/mono/sample/wasm/browser-eventpipe/Wasm.Browser.EventPipe.Sample.csproj]
      /workspaces/runtime/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs(1236,13): Trim analysis error IL2121: System.Diagnostics.Tracing.EventSource.WriteEventCore(Int32, Int32, EventData*): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2112'. Consider removing the unused warning suppression. [/workspaces/runtime/src/mono/sample/wasm/browser-eventpipe/Wasm.Browser.EventPipe.Sample.csproj]
      /workspaces/runtime/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs(1959,9): Trim analysis error IL2121: System.Diagnostics.Tracing.EventSource.WriteEventVarargs(Int32, Guid*, Object[]): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2112'. Consider removing the unused warning suppression. [/workspaces/runtime/src/mono/sample/wasm/browser-eventpipe/Wasm.Browser.EventPipe.Sample.csproj]
      /workspaces/runtime/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs(1350,9): Trim analysis error IL2121: System.Diagnostics.Tracing.EventSource.WriteEventWithRelatedActivityIdCore(Int32, Guid*, Int32, EventData*): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2112'. Consider removing the unused warning suppression. [/workspaces/runtime/src/mono/sample/wasm/browser-eventpipe/Wasm.Browser.EventPipe.Sa
      mple.csproj]
      ILLink : Trim analysis error IL2121: System.Resources.ResourceReader.DeserializeObject(Int32): Unused 'UnconditionalSuppressMessageAttribute' for warni
      ng 'IL2026'. Consider removing the unused warning suppression. [/workspaces/runtime/src/mono/sample/wasm/browser-eventpipe/Wasm.Browser.EventPipe.Sampl
      e.csproj]
      ```
      
      Fixes https://github.com/dotnet/runtime/issues/73933 .
      
      * [wasm] Disable tests failing with trimming
      Co-authored-by: Ndotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
      Co-authored-by: NAnkit Jain <radical@gmail.com>
      86f1fb55
    • D
      Fix exceptions with missing HResult assignment. (#73948) · 896ffc58
      David 提交于
      Fix #73750
      896ffc58
    • T
      avoid allocation of SafeFreeSslCredentials and SafeDeleteSslContext on Linux (#69527) · 3af3e80b
      Tomas Weinfurt 提交于
      * avoid allocation of SafeFreeSslCredentials and SafeDeleteSslContext on Linux
      
      * fix quic
      
      * fix http
      
      * update quic
      
      * feedback from review
      
      * feedback from review
      
      * add IsInvalid
      
      * remove obsolete assert
      
      * fix failing tests
      
      * add IsInvalid overload
      
      * use DangerousRelease instead of Dispose
      
      * resolve
      
      * resolve merge
      
      * resolve merge
      
      * feedback from review
      
      * Apply suggestions from code review
      Co-authored-by: NStephen Toub <stoub@microsoft.com>
      Co-authored-by: Nroot <root@linuxclient.linux.contoso.com>
      Co-authored-by: NStephen Toub <stoub@microsoft.com>
      3af3e80b
    • M
      Avoid unused NetEventSource code (#73868) · 13733cdd
      Miha Zupan 提交于
      * Avoid unused NetEventSource code
      
      * Move shared WriteEvent helper
      
      * Avoid using a hardcoded EventId in test
      
      * NextAvailableEventId
      
      * Remove redundant EventSource inheritance
      13733cdd
    • M
    • D
      Add tests and improve binary XmlDictionaryReader performance (#73332) · 5dbdde97
      Daniel Svensson 提交于
      * Read primitive types more efficient
      
      * Allow stream to read more than minimum number of required bytes
      
      * Remove pinning and pointer code from array reads
      
      * Remove bounds checks from remaing array reads
      
      * remove extra unchecked
      
      * cleanup code
      
      * Start adding tests
      
      * Add tests for binary XmlDictionaryReader
      
      * cleanup
      
      * revert back to old byte read
      
      * add test for arrays using "ref" enumeration
      
      * add guid test
      
      * Try to read while arrays from stream before processing
      
      * Write guid arrays as memory on LittleEndian platforms
      
      * Update tests to be independent of byte order
      
      * FIx bugs introduced in #71752
      * Add missing Advance to prevent corruption of reader
      * Correctly read decimal values
      5dbdde97
    • M
      Add generation of structured object file dumps (#73913) · 00f34fbd
      Michal Strehovský 提交于
      The compiler can currently emit an XML file with everything that was emitted into the output object file. This works and it's easily human readable. But the captured information is not very structured and cannot be used to generate aggregate information like 'this assembly contributed X bytes".
      
      This adds another dumper format similar to what we do for MIBC and others: it's ECMA-335 based and uses ldtoken/ldstr/ldc to encode the data.
      
      This can be used to build better tools. There's currently none but ILDASM, but it would be good to have it for 7.0. Good hackathon project.
      00f34fbd
    • L
      Clean up AOT publish process (#73416) · 06339dc4
      Lakshan Fernando 提交于
      * Clean up AOT publish process
      
      * Update src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.targets
      Co-authored-by: NSven Boemer <sbomer@gmail.com>
      
      * Update src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.targets
      Co-authored-by: NSven Boemer <sbomer@gmail.com>
      
      * FB and working around running native aot tests
      
      * update crossgen2 reference
      
      * moving package version change out of a target as per FB
      
      * Fix nativeaot test take 2
      
      * disabling a failing test
      
      * Clean up AOT publish process
      
      * Update src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.targets
      Co-authored-by: NSven Boemer <sbomer@gmail.com>
      
      * Update src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.targets
      Co-authored-by: NSven Boemer <sbomer@gmail.com>
      
      * FB and working around running native aot tests
      
      * update crossgen2 reference
      
      * moving package version change out of a target as per FB
      
      * Fix nativeaot test take 2
      
      * disabling a failing test
      
      * Remove TrimMode workaround
      
      * work around a test issue
      
      * Update src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.SingleEntry.targets
      Co-authored-by: NSven Boemer <sbomer@gmail.com>
      
      * Update src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.SingleEntry.targets
      Co-authored-by: NSven Boemer <sbomer@gmail.com>
      
      * update the version check for package
      
      * Cross target support, requires changes from SDK
      
      * Change ResolvedTargetILCompilerPack to match SDK changes
      
      * FB
      
      * Trigger Build to fix interop break
      Co-authored-by: NSven Boemer <sbomer@gmail.com>
      06339dc4
    • A
    • A
      Update byref bool native exports (#73950) · c61ef61b
      Aaron Robinson 提交于
      c61ef61b
    • A
      Vectorize IndexOfAnyExcept for four values (#73696) · 49cb4ff7
      Adam Sitnik 提交于
      49cb4ff7
    • L
      [mono] Remove active issues for https://github.com/dotnet/runtime/issues/57506 (#73492) · 8be21051
      Larry Ewing 提交于
      * Remove active issues for  https://github.com/dotnet/runtime/issues/57506
      
      * Remove AssemblyInfo.cs references
      8be21051
    • H
      Fix issue#37970 (#73552) · 042f25f1
      Hong Li 提交于
      * Fix issue#37970
      
      * update after CR feedback
      
      * add unit test and add escapt to default
      
      * fix PR per code review feedback
      
      * nit fixing
      
      * remove extra file
      042f25f1
    • H
      Make public EventBookmark's constructor and BookmarkText property (#73548) · 044b3a95
      hoangh 提交于
      * Make public EventBookmark's constructor and BookmarkText property
      
      * Add XML documentation for System.Diagnostic.Eventing.Reader.EventBookmark
      
      * Add NETCoreApp condition for EventBookmark public properties and unit tests
      
      * Change property name EventBookmark.BookmarkText to EventBookmark.BookmarkXml
      044b3a95
    • M
      a69c3821
    • J
      Fix breakage from #70661 (#73962) · 63e7cba4
      Jo Shields 提交于
      63e7cba4
    • S
      Use {Last}IndexOfAnyExcept in RegexCompiler and source generator (#73910) · e4f1b75d
      Stephen Toub 提交于
      In almost every place we use {Last}IndexOf{Any} for a given character or set of characters, we can use {Last}IndexOfAnyExcept for the negated counterpart.  This leads to cleaner generated code, and for longer searches, benefits from vectorization.  This includes:
      - In set loops of a small number of negated chars, finding the end of the loop with IndexOfAnyExcept.
      - In loops followed by a set of a small number of negated chars, using LastIndexOfAnyExcept to find the next location to which to backtrack.
      - In Singleline .*? lazy loops followed by a set of a small number of negated chars, using IndexOfAnyExcept to find the next location to backtrack to.
      - In unbounded atomic one and set loops, using IndexOfAnyExcept to find the end of the loop
      
      The two places we don't currently use IndexOf* but don't use the *Except variants are:
      - As part of TryFindNextPossibleStartingPosition.  There appear to be relatively few patterns in the wild this would benefit, and we'd need custom logic for finding the set of negated starting characters.
      - As part of backtracking in a non-Singleline lazy loop.  It needs to search for the target plus a \n, which works well when the target is a non-negated char (as it just adds the char to the set of things to search for) but doesn't when working with a negated char (as then different elements of the search have different polarities).
      e4f1b75d
    • E
    • K
      Show address offsets in hex (#73816) · 0a2b4eb9
      Kunal Pathak 提交于
      * Show address offsets in hex
      
      * fix the rebase errors
      
      * Add support for arm
      0a2b4eb9
    • D
      Update dependencies from https://github.com/dotnet/runtime build 20220814.6 (#73939) · 8d725bf5
      dotnet-maestro[bot] 提交于
      Microsoft.NET.Sdk.IL , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.DotNetHost , Microsoft.NETCore.DotNetHostPolicy , Microsoft.NETCore.ILAsm , runtime.native.System.IO.Ports , System.Text.Json
       From Version 7.0.0-rc.1.22407.4 -> To Version 7.0.0-rc.1.22414.6
      Co-authored-by: Ndotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
      8d725bf5
    • R
    • T
      Unix: Move 'FileNotFound to DirectoryNotFound' handling to GetExceptionForIoErrno. (#70661) · 68139cdb
      Tom Deseyn 提交于
      * Unix: Move 'FileNotFound to DirectoryNotFound' handling to GetExceptionForIoErrno.
      
      On Windows, APIs throw DirectoryNotFoundException instead of
      FileNotFoundException when the base components of a path don't exist.
      
      SafeFileHandle, and FileSystemInfo have some specific code to detect
      that case and to the same on Unix.
      
      This change moves that mapping to Interop.IOErrors so it applies
      to all users of GetExceptionForIoErrno.
      
      * Fix OSX test failure.
      
      * Fix wasm build.
      
      * Review usage of CheckIo/GetExceptionForIoErrno.
      
      * Call Directory.Exists instead of using Stat.
      68139cdb
    • J
      Make OCSP Stapling tests more reliable and more diagnosable · 5398f1ff
      Jeremy Barton 提交于
      Utilize the new CertificateChainPolicy option to avoid the second chain build,
      and remove the need for an AIA fetch of the intermediate.
      
      Also changes Assert.Contains with a predicate to build an array, so it pretty-prints better.
      5398f1ff
    • T
      [wasm][debugger] Support "supportsDebuggerProperties" from DAP (#71148) · c8b26136
      Thays Grazia 提交于
      * Implement support to dotnet.setDebuggerProperty from dap and give the Wasm programmer a better debugging experience.
      
      * Fix tests.
      c8b26136
    • I
      Fix unnecessary failure when Crossgen'ing dll's without proper Debug Directory data (#73824) · 9814b1ba
      Ivan Diaz Sanchez 提交于
      * Added a check to allow DLL's with bad debug directory sizes to be used by Crossgen2. Instead of failing unnecessarily, it now emits a warning.
      
      * Implemented the suggested PEReader extension method, instead of dealing with exceptions and regional issues.
      
      * Removed unnecessary 'using' statement.
      
      * Fixed the remaining 'unsafe' Debug Directory reading points within this codebase.
      
      * Added a missing 'const' modifier for a constant value.
      Co-authored-by: NSeeker186 <101211595+Seeker186@users.noreply.github.com>
      9814b1ba
    • D
      Bump Newtonsoft.Json from 12.0.3 to 13.0.1 in... · 62d1d428
      dependabot[bot] 提交于
      Bump Newtonsoft.Json from 12.0.3 to 13.0.1 in /src/libraries/Common/tests/System/Net/Prerequisites/NetCoreServer (#71180)
      
      * Bump Newtonsoft.Json
      
      Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.3 to 13.0.1.
      - [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
      - [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/12.0.3...13.0.1)
      
      ---
      updated-dependencies:
      - dependency-name: Newtonsoft.Json
        dependency-type: direct:production
      ...
      Signed-off-by: Ndependabot[bot] <support@github.com>
      
      * Update src/libraries/Common/tests/System/Net/Prerequisites/NetCoreServer/NetCoreServer.csproj
      Co-authored-by: NAdeel Mujahid <3840695+am11@users.noreply.github.com>
      Signed-off-by: Ndependabot[bot] <support@github.com>
      Co-authored-by: Ndependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      Co-authored-by: NMiha Zupan <mihazupan.zupan1@gmail.com>
      Co-authored-by: NAdeel Mujahid <3840695+am11@users.noreply.github.com>
      62d1d428
  2. 15 8月, 2022 14 次提交