Skip to content
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

[release/6.0] [mini] Use alloca for runtime_invoke retval buffer #59006

Merged
merged 2 commits into from
Sep 13, 2021

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 12, 2021

Backport of #58978 to release/6.0

/cc @lambdageek

Customer Impact

Fixes #58957

User programs on ios devices that use System.Text.Json to serialize large structs may crash during CC.

Corrects a GC hole introduced by #58364 which was a fix for #58190.

Testing

CI and manual testing.

Risk

Low. The logic is the same, except instead of using dynamic heap allocation we use alloca to heap allocate the return vlaue buffer.

lambdageek and others added 2 commits September 12, 2021 23:07
Fixes #58957
Related to #58215 which was attempting to
fix #58190
In the common case we use the return buffer just to hold a pointer to
the return value
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@Anipik Anipik merged commit 8fe648d into release/6.0 Sep 13, 2021
@jkotas jkotas deleted the backport/pr-58978-to-release/6.0 branch September 18, 2021 04:09
@ghost ghost locked as resolved and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants