Skip to content

Instantly share code, notes, and snippets.

@EgorBo
Created October 5, 2026 13:15
Show Gist options
  • Select an option

  • Save EgorBo/9045316e8236c18073f9ddd7b34d831e to your computer and use it in GitHub Desktop.

Select an option

Save EgorBo/9045316e8236c18073f9ddd7b34d831e to your computer and use it in GitHub Desktop.
reduce-unsafe / Feature - Unsafe Evolution PRs (Aug 30 - Oct 5)

Roslyn:

  • #85921: Require annotation for layout with pack or size
  • #85784: Require AllowUnsafeBlocks for the safe keyword
  • #85773: Avoid constructor recursion
  • #85756: Suppress "unnecessary unsafe"
  • #85131: Fix a race in version decoding
  • #85118: Display unsafe modifier on interface members too
  • #84888: Fix new() constraint handling in declarations
  • #84860: Add remaining public APIs

Runtime:

  • #134991: Use safe scalar code for UTF-8 Equals(OrdinalIgnoreCase)
  • #134956: Replace unsafe code with safe APIs in CoreLib and libraries
  • #134877: Replace remaining fixed buffers with InlineArray
  • #134857: Use safe code for UTF-8 StartsWith(OrdinalIgnoreCase)
  • #134548: Rewrite Base64/Base64Url helpers without unsafe code
  • #134529: Prevent separator buffer overruns in string.Join
  • #133997: Replace Unsafe.Unbox with StrongBox for JSON source-generated struct accessors
  • #133430: [Experiment] Use SIMD-friendly non-randomized string hashing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment