1. 07 9月, 2022 24 次提交
    • D
      Update dependencies from https://github.com/dotnet/arcade build 20220905.1 (#75121) · 23098297
      dotnet-maestro[bot] 提交于
      Microsoft.DotNet.ApiCompat , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions
       From Version 8.0.0-beta.22452.1 -> To Version 8.0.0-beta.22455.1
      Co-authored-by: Ndotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
      23098297
    • Z
      [mono][wasm] Make OP_WASM_SIMD_SWIZZLE use the shufflevector LLVM ins… (#75057) · fda566e9
      Zoltan Varga 提交于
      * [mono][wasm] Make OP_WASM_SIMD_SWIZZLE use the shufflevector LLVM instruction.
      
      The wasm.swizzle instrinsic always uses byte sized SIMD lanes, so it cannot represent
      all the variants of Vector128.Shuffle ().
      
      * Enable SIMD by default for testing.
      
      * Remove an assert.
      
      * Work around an LLVM problem.
      
      * Revert "Enable SIMD by default for testing."
      
      This reverts commit eebc533d4b90fdd32bbf5ea737bfa29243bdfbfe.
      fda566e9
    • R
    • C
      Encode UserName value in UriBuilder (Issue #74662) (#74953) · e23d22e1
      Connor Bullard 提交于
      * Update UriBuilder.cs
      
      * Adding check to Password
      
      * Adding Unit Tests
      
      * Update src/libraries/System.Private.Uri/src/System/UriBuilder.cs
      Co-authored-by: NMiha Zupan <mihazupan.zupan1@gmail.com>
      
      * Revising location of EncodeUserInfo to ToString()
      
      * Update src/libraries/System.Private.Uri/tests/FunctionalTests/UriBuilderTests.cs
      Co-authored-by: NMiha Zupan <mihazupan.zupan1@gmail.com>
      Co-authored-by: NMiha Zupan <mihazupan.zupan1@gmail.com>
      e23d22e1
    • A
    • A
      71adfb00
    • S
      Use Encoding.ASCII.GetBytes instead of open-coded loop in... · ac7309c4
      Stephen Toub 提交于
      Use Encoding.ASCII.GetBytes instead of open-coded loop in CreateSecKeyAndSecWebSocketAccept (#75130)
      
      ac7309c4
    • G
      Update docs for renamed type parameters (#75032) · 6253a18c
      Genevieve Warren 提交于
      6253a18c
    • S
      Add a few missing char.IsXx helpers usage to RegexGenerator.Emitter.cs (#75101) · 733a51b3
      Stephen Toub 提交于
      Just pretties up the generated code if these ranges are used.  With this, all of the char.IsXx helpers can be emitted.
      733a51b3
    • S
    • S
      Add local build for System.Globalization shim (#72896) · 7646e765
      Samiullah Mohammed 提交于
      * Add local build for System.Globalization shim
      
      Bundle the System.Globalization.Native shim sources into the native AOT toolchain package and compile them automatically using C/C++ compiler on the target machine.
      
      Compiling of the shim sources using C/C++ compiler is done during dotnet publish as follows:
        dotnet publish  /p:LocalSystemGlobalizationNative=1 -bl -r linux-x64
      
      This change is 'opt-in', it is enabled only by using /p:LocalSystemGlobalizationNative=1
      
      * Incorporate review feedback
      
      * Copy shim source code into users Obj directory at IntermediateOutputPath and compile
      ** $ ls -al obj/Debug/net7.0/linux-x64/shim_source_code/libs/System.Globalization.Native/build/libSystem.Globalization.Native-Static.a
      
      * Add shell script for readability
      
      * Add copyright headers
      
      * Fix IlCompilerPackagePath
      
      Add change that was part of previous commit
      
      * Address review feedback
      
      * Include existing pal_icushim_static.c by using STATIC_ICU define
      * Use IlcSdkPath to copy shim source code
      
      * Incorporate review feedback
      
      * Remove USE_ICUSHIM_STATIC_BUILD in pal_icushim.c
      * Rename shim_source_code to source_code in Microsoft.DotNet.ILCompiler.pkgproj and script
      * Regular config is used, config-standalone.h is removed
      * IlcPath/.. is replaced to make the ".." go away
      
      * Address feedback from 08/04
      
      * Rename option to ICUStaticLinking
      * Remove <Message ..
      * Compile without copying sources
      * Trim list of defines
      * Emit error when run on Linux in CMakeLists.txt
      * Move StaticICULibs to near licucore on Mac
      * Use only IlcHostPackagePath
      
      * Fix DirectPInvoke for library built by user
      
      * Feedback on 08/25: rename static-build, "source_code" and cleanup compile defs
      
      * Remove IlcHostPackagePath check
      * StaticICULinking property is true/false
      * Remove -g and -fPIC from definitions
      * Use minimal warning level
      * Remove -DHOST_AMD64
      * Remove -O0
      * Remove -fms-extensions -fwrapv
      * Standardize on "local build"
      * Rename build-nativeaot-shim-standalone.sh to build.sh
      * Script name in the error message should match the actual script name
      * Rename source_code to native/src
      
      Test code:
      $ cat Program.cs
      using System.Globalization;
      
      namespace CurrentCulture
      {
      	class Program
      	{
      		static void Main(string[] args)
      		{
      			double val = 1235.56;
      
      			Console.WriteLine($"Current culture: {CultureInfo.CurrentCulture.Name}");
      			Console.WriteLine(val);
      
      			CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
      
      			Console.WriteLine($"Current culture: {CultureInfo.CurrentCulture.Name}");
      			Console.WriteLine(val);
      		}
      	}
      }
      
      $ cat hello-4.csproj
      <Project Sdk="Microsoft.NET.Sdk">
       <PropertyGroup>
        <OutputType>Exe</OutputType>
        <TargetFramework>net7.0</TargetFramework>
        <RootNamespace>hello_4</RootNamespace>
        <ImplicitUsings>enable</ImplicitUsings>
        <Nullable>enable</Nullable>
       </PropertyGroup>
      
      $ cat nuget.config
      <?xml version="1.0" encoding="utf-8"?>
      <configuration>
       <packageSources>
        <!--To inherit the global NuGet package sources remove the <clear/> line below -->
        <clear />
          <add key="repositoryPath" value="/home/ubuntu/runtime/artifacts/packages/Debug/Shipping" />
          <add key="dotnet7" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json" />
       </packageSources>
      </configuration>
      
      Test code build:
      rm ./bin/Debug/net7.0/linux-arm64/native/hello-4
      ~/dotnet-sdk/dotnet clean
      ~/dotnet-sdk/dotnet publish /p:PublishAot=true /p:StaticICULinking=true -bl -r linux-arm64 --self-contained -v d 2>&1 > log
      ./bin/Debug/net7.0/linux-arm64/native/hello-4
      
      Tested on x86-64 and arm64
      
      * Feedback on 09/02
      
      *  Incorporated change to use only src/native/libs/System.Globalization.Native/CMakeLists.txt
      *  Conditionalized CMakeLists.txt for local build
      *  Moved the build.sh into parent as local_build.sh and removed local-build directory.
      *  Rename STATIC_SHIM_COMPILE to LOCAL_BUILD
      
      * Move file includes to previous itemgroup
      
      Move the includes in Microsoft.DotNet.ILCompiler.pkgproj to
      <ItemGroup Condition="'$(PackageTargetRuntime)' != ''">
      
      * Move file includes to previous itemgroup
      
      Move the includes in Microsoft.DotNet.ILCompiler.pkgproj to
      <ItemGroup Condition="'$(PackageTargetRuntime)' != ''">
      
      * Update section in compiling.md
      
      * Add "Using statically linked ICU" to compiling.md
      * Remove define check for LOCAL_BUILD in CMakeLists.txt
      
      * Update src/coreclr/nativeaot/docs/compiling.md
      
      * Update src/coreclr/nativeaot/docs/compiling.md
      
      * Update src/coreclr/nativeaot/docs/compiling.md
      
      * Update src/coreclr/nativeaot/docs/compiling.md
      Co-authored-by: NMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
      
      * Update src/installer/pkg/projects/Microsoft.DotNet.ILCompiler/Microsoft.DotNet.ILCompiler.pkgproj
      Co-authored-by: NMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
      Co-authored-by: NSamiullah Mohammed <ubuntu@ip-172-31-24-113>
      Co-authored-by: NUbuntu <ubuntu@ip-10-0-0-223.us-west-1.compute.internal>
      Co-authored-by: NJan Kotas <jkotas@microsoft.com>
      Co-authored-by: NMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
      7646e765
    • N
      96072f22
    • T
      use msquic bits on all Windows platforms (#74544) · a464e060
      Tomas Weinfurt 提交于
      a464e060
    • P
      Quick fix for current maui net6.0 status. (#75027) · ab642085
      Parker Bibus 提交于
      ab642085
    • M
      add ability to set GCName via runtimeconfig. (#74831) · d8eacf6e
      Manish Godse 提交于
      * add ability to set GCName via runtimeconfig.
      
      * Update config name.
      
      * Added the GC Name to the gcconfig.h to show up in the GetConfigurationVariables API
      Co-authored-by: Nmrsharm <musharm@microsoft.com>
      d8eacf6e
    • E
      Make the JsonSerializerOptions.MemberAccessorStrategy property static. (#74986) · 8c3e0235
      Eirik Tsarpalis 提交于
      * Make the JsonSerializerOptions.MemberAccessorStrategy property static.
      
      * fix naming
      8c3e0235
    • C
      Update Roslyn compiler build (#75058) · 538065bb
      Charles Stoner 提交于
      * Update to compiler build 4.4.0-3.22431.10
      
      * Add missing types
      
      * Remove duplicate Microsoft.Interop.SourceGeneration reference
      538065bb
    • T
      improve handling of TLS certificates on Linux (#74695) · 029bc7f7
      Tomas Weinfurt 提交于
      * test
      
      * improve hanling of TLS certificates on Linux
      
      * remove NullableSafeHandleMarshaller
      
      * add DangerousRelease
      
      * feedback from review
      
      * feedback from review
      
      * feedback from review
      
      * Update src/libraries/System.Net.Security/src/System/Net/CertificateValidationPal.Unix.cs
      Co-authored-by: NJeremy Barton <jbarton@microsoft.com>
      Co-authored-by: NJeremy Barton <jbarton@microsoft.com>
      029bc7f7
    • N
      [QUIC] Fix native crashes and heap corruption via "generated-like" interop (#74669) · c39f2b69
      Natalia Kondratyeva 提交于
      * Send buffers and handles crash fixes
      
      * Add generated-like interop
      
      * Apply PR feedback from #74611
      
      * Change asserts
      
      * Feedback + moved native methods to their own file
      
      * PR feedback
      Co-authored-by: NManickaP <mapichov@microsoft.com>
      c39f2b69
    • P
      [wasm] fix prefetch in samples (#75092) · b6c55de2
      Pavel Savara 提交于
      - only browser-advanced and browser-bench have preload optimizations now
      - modulepreload is not yet supported by FireFox, script tag type='module' works better for dependencies
      - preload and prefetch works well enough
      b6c55de2
    • P
      moved the legacy tests to new location (#75122) · 861a608e
      Pavel Savara 提交于
      861a608e
    • J
      [Mono] Fix Mono Windows x86 build and runtime crash. (#74639) · 2a747212
      Johan Lorensson 提交于
      Fix Mono Windows x86 build and runtime crash.
      
      Trying to validate a fix on x86 Windows Mono crashed runtime with
      stack overflow. After some investigation it turns out that Mono
      Windows x86 have SIMD disabled, but S.P.C was still build with
      System.Runtime.Intrinsics support and implementation of methods
      like get_IsSupported is implemented as follow:
      
      .method public hidebysig specialname static
              bool  get_IsSupported() cil managed
      {
        // Code size       6 (0x6)
        .maxstack  8
        IL_0000:  call       bool System.Runtime.Intrinsics.X86.Popcnt::get_IsSupported()
        IL_0005:  ret
      } // end of method Popcnt::get_IsSupported
      
      causing a stack overflow when called at runtime.
      
      Fix make sure we won't add support for System.Runtime.Intrinsics
      in S.P.C for Mono Windows x86 builds.
      
      There was also a warning in debugger-agent.c when building debug
      that caused build to fail, including fix for that as well.
      2a747212
    • D
      Improve morphing of bit comparisons to constant 0/1 (#73120) · 1b4ed22c
      dubiousconst282 提交于
      * Morph `(x >> y & 1) NE/EQ 0/1` into `(x & (1 << y)) NE/EQ 0`
      
      * Fix cond reversing
      
      * Transform TEST_NE(x, 1) into AND(x, 1)
      
      * Recalculate containment when changing TEST to AND
      
      * Fix formatting
      
      * Update node flags when changing operands
      
      * Check heuristic before morphing
      
      * Revert TEST_NE -> AND, do it earlier and check for LSH
      
      * Use SetAllEffectsFlags() instead of manual bit ops
      
      * Fix formatting
      
      * Remove unnecessary check
      1b4ed22c
    • S
      Consolidate importer spilling code V3 (#73233) · 77613dc2
      SingleAccretion 提交于
      * Consolidate importer spilling code V2 (#72744)
      
      * Consolidate importer spilling code (#72291)
      
      * Add tests
      
      * Fix losing GLOB_REF on the LHS
      
      The comment states we don't need it, which is incorrect.
      
      Diffs are improvements because we block forward substitution of
      calls into "ASG(BLK(ADDR(LCL_VAR<field>, ...)))", which allows
      morph to leave the "can be replaced with its field" local alone.
      
      * Prospective fix
      
      Spill "glob refs" on stores to "aliased" locals.
      
      * Delete now-not-necessary code
      
      * Fix up asserts
      
      * Clean out '(unsigned)CHECK_SPILL_ALL/NONE' casts
      
      * Don't manually spill for 'st[s]fld'
      
      * Revert 'Clean out '(unsigned)CHECK_SPILL_ALL/NONE' casts'
      
      * Fix assignments done via return buffers
      
      The mistake in logic was that the only trees which could modify
      unaliased locals are assignments, which is not true, calls can
      do that as well.
      
      One day we will move the return buffer handling out of importer,
      but until then, special handling is required.
      
      An alternative fix would have been to bring back the explicit
      "impSpillLclRefs" to "stloc/starg" code, but that would contradict
      the overall goal of consolidating the spilling logic.
      
      * Account for "implicit" GLOB_REFs
      
      Indirections off of "aliased" locals must be treated as global references
      even as they are not marked with GLOB_REF.
      
      Ideally, the importer would be designed such that this special-casing would
      not be necessary (i. e. all indirections are initially GLOB_REF and then
      morph "cleans" the flags once address-exposure info has been determined),
      but we're not there yet, and it is questionable whether we'll get to that
      point in any sort of near future.
      77613dc2
  2. 06 9月, 2022 11 次提交
  3. 05 9月, 2022 5 次提交