Skip to content

HeapOrReferenceIndexBase.Add - immediately reserve the slot to be resilient to a re-entrancy#58526

Merged
AlekseyTs merged 2 commits intodotnet:mainfrom
AlekseyTs:Issue58520
Dec 30, 2021
Merged

HeapOrReferenceIndexBase.Add - immediately reserve the slot to be resilient to a re-entrancy#58526
AlekseyTs merged 2 commits intodotnet:mainfrom
AlekseyTs:Issue58520

Conversation

@AlekseyTs
Copy link
Copy Markdown
Contributor

Comparisons performed by dictionaries can cause a re-entrancy and invalidate the index, unless we reserve it before that.
Fixes #58520.

…ilient to re-entrancy

Comparisons performed by dictionaries can cause re-entrancy and invalidate the index unless we reserve it before that.
Fixes dotnet#58520.
@AlekseyTs AlekseyTs requested a review from a team as a code owner December 29, 2021 21:56
Copy link
Copy Markdown
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

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

LGTM (commit 1), assuming the answer to my question is yes.

@AlekseyTs AlekseyTs enabled auto-merge (squash) December 29, 2021 22:33
@AlekseyTs AlekseyTs merged commit 0c99dcb into dotnet:main Dec 30, 2021
@ghost ghost added this to the Next milestone Dec 30, 2021
@Cosifne Cosifne modified the milestones: Next, 17.1.P3 Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

An invalid IL is emitted for a method access through a type constructed with modified (with modopt) type arguments

4 participants