-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[10.0/preview-2] JIT: disable array stack allocation #113181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[10.0/preview-2] JIT: disable array stack allocation #113181
Conversation
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.
There was a problem hiding this 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.
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
|
@jeffschwMSFT @JulieLeeMSFT FYI This disables for all arrays. We could try and just disable stack allocation for gc typed arrays. |
JulieLeeMSFT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
jeffschwMSFT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
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 |
|
Tell mode as necessary to ship. |
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.