Skip to content

Memory Safety v2 Tracking Issue #125800

Open

Description

@richlander

Memory safety is a critical characteristic for Cloud and AI scenaros. We are making the definition of unsafe code more strict (more patterns are unsafe), making the use of unsafe code more viral (propogation), and making it easier to audit dependencies.

See Improving C# Memory Safety for a higher-level view.

Current backlog

Out of scope

The following components are out of scope for the project.

  • Reflection

Context

We expect that user requirements will increasingly favor memory safe languages as Cloud and AI domains evolve. C# is already a memory safe language, however, we can do more to increase user confidence. Our project has significant overlap with Swift 6.2. It also has overlap with Rust behavior.

A related effort is reducing unsafe code in the codebase. This includes: adopting newer safe patterns that deliver acceptable (sometimes better) performance relative to and older unsafe pattern, removing unsafe code where it is needed/warranted, and creating new safe patterns (often in the JIT) to apply.

Learn more:

Activity

  1. dotnet-policy-service commented on Mar 19, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/area-meta
    See info in area-owners.md if you want to be subscribed.

  2. added this to the 11.0.0 milestone on Apr 13, 2026
  3. removed
    untriagedNew issue has not been triaged by the area owner
    on Apr 13, 2026
  4. modified the milestones: 11.0.0, 12.0.0 on Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EpicGroups multiple user stories. Can be grouped under a theme.area-Metareduce-unsafe

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions