Skip to content

Conversation

@AndyAyersMS
Copy link
Member

Preview 2 is missing an important fix for stack-allocated arrays of GC types: #112711. This can lead to unexpected crashes in jitted code.

Disable array stack allocation to work around this.

Preview 2 is missing an important fix for stack-allocated arrays of GC types: dotnet#112711.
This can lead to unexpected crashes in jitted code.

Disable array stack allocation to work around this.
Copilot AI review requested due to automatic review settings March 5, 2025 23:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Mar 5, 2025
@dotnet-policy-service
Copy link
Contributor

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

@AndyAyersMS
Copy link
Member Author

@jeffschwMSFT @JulieLeeMSFT FYI
@dotnet/jit-contrib PTAL

This disables for all arrays. We could try and just disable stack allocation for gc typed arrays.

Copy link
Member

@JulieLeeMSFT JulieLeeMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@AndyAyersMS
Copy link
Member Author

Failures are mostly in the test case that is testing for this feature... I will have to modify the test case as well since is expecting some arrays to be stack allocated.

But there is one unrelated looking failure on x64

  Starting:    System.Numerics.Tensors.Tests (parallel test collections = on [4 threads], stop on fail = off)
    System.Numerics.Tensors.Tests.ConvertTests.ConvertChecked [FAIL]
      System.OverflowException : Arithmetic operation resulted in an overflow.
      Stack Trace:
        /_/src/libraries/System.Numerics.Tensors/src/System/Numerics/Tensors/netcore/TensorPrimitives.ConvertChecked.cs(37,0): at System.Numerics.Tensors.TensorPrimitives.ConvertCheckedFallbackOperator`2.Invoke(TFrom x)

@ViktorHofer ViktorHofer added the Servicing-approved Approved for servicing release label Mar 6, 2025
@ViktorHofer
Copy link
Member

Tell mode as necessary to ship.

@ViktorHofer ViktorHofer merged commit 07b0519 into dotnet:release/10.0-preview2 Mar 6, 2025
102 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants