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

Track cloned objects to avoid StackOverflowExceptions during cloning #1215

Merged
merged 3 commits into from
Apr 12, 2023

Conversation

MaggieKimani1
Copy link
Contributor

@MaggieKimani1 MaggieKimani1 commented Apr 12, 2023

Modifies the DictionaryCloneHelper's Clone() method to keep track of cloned objects in order to avoid recursively cloning an object afresh that's already been cloned using reflection. This reduces circular dependencies caused by recursion that lead to StackOverflowExceptions.

related #1212

Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

This should reduce the risk but I'm not sure it'll entirely fix it. I'm ok with trying it though.
Can we also bump the preview version to unblock the pending pr please?

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell B 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@MaggieKimani1 MaggieKimani1 merged commit 2acc209 into vnext Apr 12, 2023
@MaggieKimani1 MaggieKimani1 deleted the mk/fix-cloning-stackoverflow-exception branch April 12, 2023 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants