1. 17 8月, 2022 10 次提交
  2. 16 8月, 2022 30 次提交
    • K
      fix formatting of arm/arm64 addresses (#73967) · 080f708e
      Kunal Pathak 提交于
      080f708e
    • M
      Publish ILC as a trimmed+R2R+singlefile executable (#73987) · acce4fde
      Michal Strehovský 提交于
      This is the same configuration that we ship crossgen2 with. It produces a lot smaller packages with faster startup time. Setting this as `CoreCLRILCompilerDir` ensures that this is the ILCompiler that we test, build crossgen2 with, and package.
      
      I don't have high confidence that we can get #67742 in time for .NET 7 but since we still have some runway before .NET 7 snaps, checking this in as a plan B.
      
      This change is temporary until #67742 is fixed.
      acce4fde
    • M
      Warn if runtimeconfig.template.json is used with PublishAot (#73996) · adc2b685
      Michal Strehovský 提交于
      * Warn if runtimeconfig.template.json is used with PublishAot
      
      Fixes #72310.
      adc2b685
    • M
      Improve failure mode when PublishSingleFile and PublishAot are specified together (#73995) · 8e605558
      Michal Strehovský 提交于
      Better than
      
      ```
      C:\dotnet7\sdk\7.0.100-rc.1.22375.3\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(898,5): error MSB4018:
       The "GenerateBundle" task failed unexpectedly. [C:\dotnet7\incremental\incremental.csproj]
      C:\dotnet7\sdk\7.0.100-rc.1.22375.3\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(898,5): error MSB4018:
       System.ArgumentException: Invalid input specification: Must specify the host binary [C:\dotnet7\incremental\incrementa
      l.csproj]
      ```
      
      Fixes #72559.
      8e605558
    • A
      Fix handling of corrupted state exceptions on Windows (#73889) · 98af59dd
      Anton Lapounov 提交于
      The new code for handling hardware exceptions (which had been enabled only for Windows x64 with CET before #70428 and became enabled for all Windows targets after #70428) would translate hardware exceptions into managed exception in the `HandleManagedFault` function. That translation broke recognizing corrupted state exceptions in the `ProcessCLRException` function, because the exception would have the generic `EXCEPTION_COMPLUS` exception code instead of the original hardware exception code.
      
      The fix is to re-raise the OS exception in `HandleManagedFault`, keeping the original exception record and exception context, and leave handling of the exception to `ProcessCLRException`, similar to how it used to work before #70428. I also restored setting the `TSNC_DebuggerIsManagedException` flag on the thread in case the debugger still uses it.
      
      Fixes #73794.
      98af59dd
    • M
      Fix another PublishAot incrementality issue (#73994) · e85a6721
      Michal Strehovský 提交于
      Fixes #64163.
      e85a6721
    • S
      Retry distributed transaction tests on MSDTC startup failure (#73941) · c7b500d0
      Shay Rojansky 提交于
      Fixes #73874
      c7b500d0
    • M
      Make PublishAot properly incremental (#73989) · 66eeb2d2
      Michal Strehovský 提交于
      `NativeLibrary` is an input to `LinkNative` target. Since these are not fully qualified paths (we rely on link.exe doing a thing to find them) the target always re-runs. It should not.
      
      The ideal fix would be to make this paths fully qualified, but I don't see an easy way to do that. SDK libraries don't really change in meaningful ways.
      66eeb2d2
    • T
      fix handling of client cert on macOS (#73574) · 7d981168
      Tomas Weinfurt 提交于
      * fix handling of client cert on macOS
      
      * update test
      
      * fix test check
      
      * add debug for building chain
      
      * increase retry
      
      * more debug
      
      * more debug
      
      * more debug
      
      * log ChainStatus
      
      * update test
      
      * add comment
      7d981168
    • T
    • 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