1. 29 9月, 2022 12 次提交
  2. 28 9月, 2022 24 次提交
  3. 27 9月, 2022 4 次提交
    • Z
      [mono][aot] Prefer specific instances instead of gshared for methods... · c7c6aa03
      Zoltan Varga 提交于
      [mono][aot] Prefer specific instances instead of gshared for methods containing static virtual calls. (#76033)
      
      These calls cannot be resolved at compile time in gshared methods, so they cannot be inlined etc.
      They are used in perf sensitive BCL code like SpanHelpers. To fix this, modify the AOT compiler
      so in addition to the gshared versions, it emits specific instances of these methods if possible.
      This only affects a small subset of gshared methods so it doesn't lead to a noticable code size increase.
      
      Fixes https://github.com/dotnet/runtime/issues/75801.
      c7c6aa03
    • S
      Fix incorrect string length calculation (#76127) · 94c6fe6c
      Sparin 提交于
      ANSI string depends on system encoding charset. Unix's implementation of Marshal.StringToHGlobalAnsi encodes in UTF8. UTF8 characters which are out of 8-bit range (otcet) encodes in multiple bytes (otcets). ASCII characters usually are in 0x00-0x7F range but cyrillic and other characters are not. For example, 'Зфыы123;' (eq. 'Pass123$') will be encoded in 12 bytes instead of 8
      
      Fix #76125
      94c6fe6c
    • S
      Improve IPAddress to/from bytes perf (#75872) · 36bd4286
      Stephen Toub 提交于
      * Improve IPAddress to/from bytes perf
      
      Also cleaned up some unnecessary `!`s with `MemberNotNullWhen`.
      
      * Address PR feedback to use shifts instead of shuffle
      
      And also simplify fallback.
      
      * Avoid non-portable cast for big endian
      36bd4286
    • A
      JIT: refactor and enhance the redundant branch optimizer (#76207) · 80f72346
      Andy Ayers 提交于
      One more preparatory step before introducing the new phi-based
      disambiguation.
      
      * handle some cases of ambiguous preds better
      * split out the jump threading pre checks into a helper
      * properly support updating switch preds
      * generalize retry logic a bit to handle more cases
      80f72346