Skip to content

Huge array allocation crashes an app in .NET 10.0 #123361

@EgorBo

Description

@EgorBo

Reported through community channels:

using System.Collections.Generic;

var set = new List<byte[]>(1188074137);
var bytes = new byte[] { };
for (int i = 0; i < 1188074137; i++)
    set.Add(bytes);

.NET 9.0:

Exits normally

.NET 10.0:

Fatal error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions