1. 01 7月, 2022 4 次提交
  2. 30 6月, 2022 3 次提交
    • P
      [wasm] Preparation for public API in System.Runtime.InteropServices.JavaScript (#71332) · 4823df3d
      Pavel Savara 提交于
      *    new ref assembly System.Runtime.InteropServices.JavaScript - empty
      *    new src assembly System.Runtime.InteropServices.JavaScript
              moved all implementation from System.Private.Runtime.InteropServices.JavaScript into it
      *    added IMPORTS, EXPORTS to js API
      *    refactored setup_managed_proxy and teardown_managed_proxy in JS
      *    added more range assert for working with wasm memory in JS
      4823df3d
    • A
      [wasm] Wasm.Build.Tests - fixes for tests failing on CI (#70704) · ce6d3dff
      Ankit Jain 提交于
      * [wasm][nodejs] Ensure that stdout/stderr have been flushed out before exiting
      
      When the results xml is large, and we are writing the base64
      representation in one line, `node` can exit before all the output gets
      flushed out. This results in xharness getting an incomplete
      `STARTRESULTXML <len> <base64> ... ` with missing `ENDRESULTXML`, thus
      no `testResults.xml` is generated.
      
      This can be seen in the case of `Microsoft.Extensions.Primitives.Tests`
      which has xml ~140KB, and `System.Memory.Tests` which has a xml ~13MB.
      
      So, wait for the two streams to be flushed out, with a timeout of 3secs.
      
      * [wasm] Wasm.Build.Tests: improve reading output from processes
      
      - Fix to call `WaitForExit()` once `WaitForExit(int)` returns, which
        ensures that all the async handlers have been run.
      
      - Also, for non-browser xharness runs use the emitted `wasm-console.log`
        as the output, so we don't depend on xharness' stdout.
      
      * Wasm.Build.Tests: Run the crypto test only with browser. Other cases are covered in library tests
      
      * Enable WasmTemplateTests.ConsolePublishAndRun
      
      Fixes https://github.com/dotnet/runtime/issues/70675
      
      * Wasm.Build.Tests: avoid unncessary copy when building locally
      
      Copy sdk for testing workloads only on CI.
      
      * Address feedback from @kg
      
      * Remove timeout on flushing stdout/stderr streams, for console templates, IOW, user apps
      ce6d3dff
    • S
      [Mono] Remove unused field in Exception.Mono (#71202) · ade0b214
      Steve Pfister 提交于
      https://github.com/dotnet/runtime/pull/70970 was merged with a field that was unused.  This PR removes it.
      Co-authored-by: NSteve Pfister <steve.pfister@microsoft.com>
      ade0b214
  3. 29 6月, 2022 8 次提交
    • D
      [main] Update dependencies from dotnet/arcade (#71129) · e68359b7
      dotnet-maestro[bot] 提交于
      * Update dependencies from https://github.com/dotnet/arcade build 20220620.8
      
      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 7.0.0-beta.22316.2 -> To Version 7.0.0-beta.22320.8
      
      * Update dependencies from https://github.com/dotnet/arcade build 20220622.3
      
      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 7.0.0-beta.22316.2 -> To Version 7.0.0-beta.22322.3
      
      * Update dependencies from https://github.com/dotnet/arcade build 20220623.2
      
      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 7.0.0-beta.22316.2 -> To Version 7.0.0-beta.22323.2
      
      * Update dependencies from https://github.com/dotnet/arcade build 20220624.1
      
      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 7.0.0-beta.22316.2 -> To Version 7.0.0-beta.22324.1
      
      * Update dependencies from https://github.com/dotnet/arcade build 20220627.1
      
      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 7.0.0-beta.22316.2 -> To Version 7.0.0-beta.22327.1
      
      * Update dependencies from https://github.com/dotnet/arcade build 20220627.2
      
      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 7.0.0-beta.22316.2 -> To Version 7.0.0-beta.22327.2
      
      * Upgrade paths with TFMs to net7.0
      
      Arcade upgraded to 7.0 in https://github.com/dotnet/arcade/pull/9127Co-authored-by: Ndotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
      Co-authored-by: NPremek Vysoky <premek.vysoky@microsoft.com>
      Co-authored-by: NAlexander Köplinger <alex.koeplinger@outlook.com>
      e68359b7
    • M
      [wasm] Fix loading NPM packages on NodeJS tests (#71377) · e7f1765f
      Marek Fišera 提交于
      * Fix package type in HTTP and WebSocket tests.
      * Move loading of tests npm packages to onConfigLoaded.
      e7f1765f
    • K
      Re-enable automatic gc safe transitions in threaded wasm mode (#71229) · 8be6ee08
      Katelyn Gadd 提交于
      Gc safe transitions and memory barriers were disabled for wasm, now they are enabled if the wasm_gc_safepoints AOT compiler option is set or the DISABLE_THREADS define is not active
      8be6ee08
    • Z
    • Z
      [mono] Use GenericArraySortHelper<T> on mono as well. (#71325) · 4b1a1213
      Zoltan Varga 提交于
      * [mono] Use GenericArraySortHelper<T> on mono as well.
      
      * Remove unnecessarily DynamicDependency attributes.
      4b1a1213
    • R
      [wasm] Add Vector128.OnesComplement SIMD intrinsic (#71384) · 3fb9511b
      Radek Doulik 提交于
      * [wasm] Add Vector128.OnesComplement SIMD intrinsic
      
      Add wasm specific implementation of `Vector128.OnesComplement` method.
      
      Example compilation output. Managed:
      
          static Vector128<double> SimdTest3(Vector128<double> input)
          {
              return Vector128.OnesComplement(input);
          }
      
      IR:
      
          BB3:                                              ; preds = %BB2
            %cast_to_4_x_i32 = bitcast <2 x double> %simd_vtype to <4 x i32>
            %wasm_not = xor <4 x i32> %cast_to_4_x_i32, <i32 -1, i32 -1, i32 -1, i32 -1>
            %cast_back = bitcast <4 x i32> %wasm_not to <2 x double>
            br label %BB4
      
      wasm - Debug configuration:
      
          (func Wasm_Console_V8_CJS_Sample_Test_SimdTest3_System_Runtime_Intrinsics_Vector128_1_double(param $0 i32, $1 i32, $2 i32))
           local $3 i32
           local $4 i32
           local $5 v128
           local $6 v128
           0x00cf955a: global.get $__stack_pointer
           0x00cf955c: local.set $3
           0x00cf955e: i32.const 16
           0x00cf9560: local.set $4
           0x00cf9562: local.get $3
           0x00cf9564: local.get $4
           0x00cf9566: i32.sub
           0x00cf9567: drop
           0x00cf9568: local.get $1
           0x00cf956a: v128.load align:4    [SIMD]
           0x00cf956e: local.set $5
           0x00cf9570: local.get $5
           0x00cf9572: v128.not    [SIMD]
           0x00cf9574: local.set $6
           0x00cf9576: local.get $6
           0x00cf9578: drop
           0x00cf9579: local.get $0
           0x00cf957b: local.get $6
           0x00cf957d: v128.store    [SIMD]
           0x00cf9581: return
      
      wasm - Release configuration:
      
          (func idx:7866(param $0 i32, $1 i32, $2 i32))
           0x00185b37: local.get $0
           0x00185b39: local.get $1
           0x00185b3b: v128.load align:4    [SIMD]
           0x00185b3f: v128.not    [SIMD]
           0x00185b41: v128.store    [SIMD]
      
      * Apply feedback
      
      * Add `--enable-simd` to `wasm-opt` again
      
      * Fix build
      3fb9511b
    • S
      Use null coalescing in many more places (#71361) · e55c9082
      Stephen Toub 提交于
      e55c9082
    • S
      Enable IDE0170 (Simplify property pattern) and IDE0200 (remove unnecessary... · 9f7bf799
      Stephen Toub 提交于
      Enable IDE0170 (Simplify property pattern) and IDE0200 (remove unnecessary lambda expression) (#71011)
      
      As part of updating the config file with recently added rules, also turn on a few of them.
      9f7bf799
  4. 28 6月, 2022 1 次提交
  5. 25 6月, 2022 1 次提交
  6. 24 6月, 2022 1 次提交
  7. 23 6月, 2022 3 次提交
  8. 22 6月, 2022 5 次提交
  9. 21 6月, 2022 3 次提交
  10. 20 6月, 2022 1 次提交
    • V
      Upstream coreclr and pal changes to support powerpc (ppc64le) architecture (#69105) · edd35971
      Vikas Gupta 提交于
      * coreclr pal layer chanegs.
      
      * Updated the system arch for power architecture.
      
      * Fixed the failing PAL SXS exception_handling test case
      
      * replaced gint with gint64 to avoid overflow and this has fixed the segmentation fault issue.
      
      * coreclr pal layer chanegs.
      
      * Fixed the failing PAL SXS exception_handling test case
      
      * coreclr pal layer chanegs.
      
      * Updated the system arch for power architecture.
      
      * Fixed the failing PAL SXS exception_handling test case
      
      * replaced gint with gint64 to avoid overflow and this has fixed the segmentation fault issue.
      
      * coreclr pal layer chanegs.
      
      * Fixed the failing PAL SXS exception_handling test case
      
      * Removing intsafe.h file as main does not have this file now.(Already removed in commit 27195f67)
      Co-authored-by: NAlhad Deshpande <Alhad.Deshpande1@ibm.com>
      edd35971
  11. 19 6月, 2022 1 次提交
  12. 18 6月, 2022 4 次提交
  13. 17 6月, 2022 2 次提交
  14. 16 6月, 2022 1 次提交
  15. 15 6月, 2022 2 次提交
    • F
      [Mono] Fix C4018 round I (#70417) · 82a7ee44
      Fan Yang 提交于
      * First round of change of fixing C4018
      
      * Address part of review feedback
      
      * Change the type of idx to unsigned for `effective_table_slow`
      
      * Add idx range check after the type was changed
      
      * Address review feedback for `class-init.c`
      
      * Change the return type of `*table_num_rows*` to `guint32`. Deal with the consequence of return type change of `table_info_get_rows`. Correct the type of a few local variables which store the return of `mono_metadata_token_index`.
      
      * Update return type
      
      * Address review feedbacks of metadata.c
      
      * Fix native crash
      
      * Make counter private to for-loop
      
      * Address review feedbacks
      
      * Address review feedbacks
      82a7ee44
    • T
      [wasm][debugger] Implement get bytes from loaded_files using debugger protocol. (#69072) · 56e58d30
      Thays Grazia 提交于
      * Implement get bytes from loaded_files using debugger protocol.
      
      * fix pdb size == nul
      
      * Adressing @radical comments.
      
      * Fix build.
      
      * fix compilation
      
      * Addressing @radical comments.
      Co-authored-by: NAnkit Jain <radical@gmail.com>
      56e58d30