1. 02 4月, 2022 7 次提交
  2. 01 4月, 2022 17 次提交
    • S
      [iOS] Enable some previously skipped tests (#65652) · c3e44952
      Steve Pfister 提交于
      Enabling because the underlying issues appear to have been fixed.
      
      https://github.com/dotnet/runtime/issues/56085 
      https://github.com/dotnet/runtime/issues/52460
      c3e44952
    • K
      clean up JsonTypeInfo constructor (#67430) · 42accd52
      Krzysztof Wicher 提交于
      42accd52
    • E
      Refactor JsonSerializer metadata reading infrastructure (#67183) · 07e87bc4
      Eirik Tsarpalis 提交于
      * Refactor metadata reading infrastructure.
      
      * Update src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Object/ObjectConverter.cs
      07e87bc4
    • J
      Optimize `ValueNumStore::GetVNFunc` (#67395) · c3843c59
      Jakob Botsch Nielsen 提交于
      `ValueNumStore::GetVNFunc` is very hot, in fact so hot that it shows up
      right at the top in a profile of SPMI over libraries.pmi, next to
      `fgMorphSmpOp`. Instead of copying all args just return a pointer to the
      arguments which allows all the cases to be unified and makes the
      function small enough for MSVC to inline it.
      
      Most of the work here is to make sure we do not end up with undefined
      behavior. I also removed some of the duplication by using a templated
      struct for func apps instead of the old VNDefFuncNArg.
      
      Windows x64 SPMI over libraries.pmi:
      PIN before: 329991512865
      PIN after: 326098430289 (-1.19%)
      c3843c59
    • D
      Use ROS<byte> instead of byte[] where it makes sense on S.S.C.Cose (#66741) · 321cec85
      David Cantú 提交于
      * Use ROS<byte> instead of byte[] on S.S.C.Cose
      
      * Add TrySign and improve Sign implementation to use less byte[]
      
      * Add TrySign tests
      
      * Address using scope feedback
      
      * Address src feedback
      
      * Refactor tests to avoid duplicated ones
      
      * Remove invalid asserts in Crypto code
      
      * Fix 'new()' without the type on the left-hand side
      
      * Fix ThreadStatic issues in tests
      
      * * Don't use ArrayPool in SignCore
      * Add comment describing reusability of encoded protected headers
      * Cache toBeSigned
      
      * Don't cache toBeSigned for detached content
      
      * Address nits in tests
      321cec85
    • V
      Bring back direct dependencies on System.Runtime.CompilerServices.Unsafe for... · 3cec42fa
      Viktor Hofer 提交于
      Bring back direct dependencies on System.Runtime.CompilerServices.Unsafe for other tfms than net7.0 (#67385)
      
      * Add dependency on Unsafe package
      
      With the removal of the Unsafe package, a few projects regressed which
      previously had a direct dependency on the latest version of Unsafe
      (6.0.0) by now depending on the transitive Unsafe dependency of i.e.
      System.Memory which is a very old version (4.5.*).
      
      Fixing those projects to declare the direct dependency again.
      
      * Cleanup
      3cec42fa
    • M
      93cd0332
    • M
      Don't produce unnecessary default interface methods (#67409) · 665a0b11
      Michal Strehovský 提交于
      Found this because it was asserting in one of the Pri-0 tests. We were trying to generate a special instantiating stub for an interface type that was not a dynamic interface castable implementation. I'm adding a regression test too because it has a visible outside behavior besides the assert.
      665a0b11
    • S
      Add RemoteExecutor check in TestWaitForExitValidation (#67397) · 9b2e2a83
      Steve Pfister 提交于
      https://github.com/dotnet/runtime/pull/64860 added a TestWaitForExitValidation test that would fail when run on platforms that did not support RemoteExecutor.
      
      This change adds a `ConditionalTheory` to make sure that doesn't happen.
      9b2e2a83
    • J
      Load R2R images on osx-arm64 according to Apple's guidelines (#67118) · 64096424
      Jonathan Giannuzzi 提交于
      * Load R2R images on osx-arm64 according to Apple's guidelines
      
      * Address review comments
      
      * use MAP_PRIVATE for the mapped file
      * correct the condition
      
      * Use PAL_JitWriteProtect once per relocation
      
      * Flush instruction cache during relocation on Apple Silicon
      
      * Fix typo in comment
      
      * Use PAL_JitWriteProtect in the same spots where protection is toggled
      
      This allows to keep the instruction cache flush logic identical between platforms.
      
      * Revert the change for Intel to avoid any regression
      
      * Always unmap the file to avoid leaks + log errors
      64096424
    • M
      Makes GetChildKeys more efficient (#67186) · 09d83464
      Maryam Ariyan 提交于
      09d83464
    • T
      Mark architecture-specific tests as requiring process isolation (#67394) · 018b85a3
      Tomáš Rylek 提交于
      As discussed offline, according to the current merged wrapper
      architecture, for architecture-variant tests all versions
      are compiled and the "wrong" variants get skipped at runtime
      using the ConditionalFact attribute. Sadly for some of the ILPROJ
      tests JITting the "wrong" variant ends up crashing the JIT during
      Crossgen2 compilation. We can follow up by figuring out whether
      the crash is intentional but for now a simple way to work around
      this problem (hitting just a small number of tests) is to mark
      them as out-of-process tests so that the wrong variants get
      filtered out early and R2R compilation is not triggered for them.
      
      Thanks
      
      Tomas
      018b85a3
    • S
      Fix missing side effect flags on HWI nodes (#67206) · c4990452
      SingleAccretion 提交于
      * Set side-effect flags in constructor for HWIs
      
      * Add test
      
      * Experiment: NULL_CHECK LDOBJs
      c4990452
    • S
      Account for global stores in hoisting properly (#67213) · 7f94e6ec
      SingleAccretion 提交于
      * Take HWI stores into account in hoisting
      
      * Also fix ordinary stores while we're at it
      
      The contract for whether the LHS of a global ASG(IND, ...)
      should be marked with GLOB_REF is not clearly specified.
      
      * Add tests
      7f94e6ec
    • S
      Memory containment for `FIELD_LIST` operands on x86 (#65803) · e402d8e3
      SingleAccretion 提交于
      * Remove "inst_RV_TT" usages from non-XARCH code
      
      a) It is clearer and cheaper to directly use the emitter anyway.
      b) "inst_RV_TT" will be made XARCH-only in an upcoming change.
      
      * Refactor "inst_TT" and "inst_RV_TT"
      
      a) Make them XARCH-only.
      b) Rewrite them using "OperandDesc".
      
      * Memory containment for FIELD_LIST operands on x86
      
      Enable broader containment for FIELD_LIST operands on x86.
      
      The primary benefits come from containing loads that long
      decomposition has left (e. g. LCL_FLDs):
      
      ```diff
      -       mov      ecx, dword ptr [ebp+08H]
      -       mov      edx, dword ptr [ebp+0CH]
      -       push     edx
      -       push     ecx
      +       push     dword ptr [ebp+0CH]
      +       push     dword ptr [ebp+08H]
      ```
      
      * emitIns_A: add function header
      
      * Remove the "UNDONE: ..." printing
      
      Insert an assert instead about what we expect and handle GCInfo-wise.
      e402d8e3
    • R
      Fix Wrong exception for Open*Stream after connection is closed (#67342) · a847ddfe
      Radek Zikmund 提交于
      * Fix Wrong exception for Open*Stream after connection is closed
      
      * Don't handle InvalidState
      
      * Update src/libraries/System.Net.Quic/src/System/Net/Quic/Implementations/MsQuic/MsQuicStream.cs
      Co-authored-by: NNatalia Kondratyeva <knatalia@microsoft.com>
      Co-authored-by: NNatalia Kondratyeva <knatalia@microsoft.com>
      a847ddfe
    • R
      Port Access violation occurring in... · fe0f600e
      Ravi Kumar 提交于
      Port Access violation occurring in System.DirectoryServices.ActiveDirectory.ForestTrustRelationshipInformation fix from .netfx to .net-core (#66726)
      
      * foresttrust port from dotnetfx
      
      * fixed nullable reference error
      fe0f600e
  3. 31 3月, 2022 16 次提交