Skip to content

Mono asserts when processing value classes larger than 64kB #137359

Open

Description

@snickolls-arm

Description

Mono will assert when processing value classes with size greater than or equal to 64kB.

Reproduction Steps

Example C#:

[StructLayout(LayoutKind.Explicit, Size = 65536)]
private struct LargeLocal
{
    [FieldOffset(65528)]
    public long Last;
}

LargeLocal l = new LargeLocal(); // * Assertion at /Users/runner/work/1/s/src/mono/mono/mini/interp/transform.c:8797, condition `i32 < G_MAXUINT16' not met
l.Last = 1234;

Expected behavior

The value class should compile without issue.

Actual behavior

* Assertion at /Users/runner/work/1/s/src/mono/mono/mini/interp/transform.c:8797, condition `i32 < G_MAXUINT16' not met

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

This is being created for CoreCLR JIT tests to point to, when disabling tests on Mono.

See #135665 (comment)

Activity

  1. added
    untriaged
    on Nov 11, 2026
  2. added
    disabled-test
    on Nov 11, 2026
  3. dotnet-policy-service commented on Nov 11, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @akoeplinger, @matouskozak, @simonrozsival
    See info in area-owners.md if you want to be subscribed.

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

    area-Infrastructure-monoarea-VM-meta-monodisabled-testuntriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions