Skip to content

Port the check for illegal type recursion to the EnsureLoadableType implementation#91707

Merged
davidwrighton merged 1 commit into
dotnet:mainfrom
davidwrighton:IllegalRecursionCheck
Sep 7, 2023
Merged

Port the check for illegal type recursion to the EnsureLoadableType implementation#91707
davidwrighton merged 1 commit into
dotnet:mainfrom
davidwrighton:IllegalRecursionCheck

Conversation

@davidwrighton

@davidwrighton davidwrighton commented Sep 7, 2023

Copy link
Copy Markdown
Member
  • Algorithm described in ECMA 335 II.9.2 Generics and recursive inheritance graphs)
  • Reuse the Tarjan algorithm logic for this

Fixes #89545

…mplementation

- Algorithm described in ECMA 335 II.9.2 Generics and recursive inheritance graphs)
- Reuse the Tarjan algorithm logic for this
@ghost

ghost commented Sep 7, 2023

Copy link
Copy Markdown

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

Issue Details
  • Algorithm described in ECMA 335 II.9.2 Generics and recursive inheritance graphs)
  • Reuse the Tarjan algorithm logic for this
Author: davidwrighton
Assignees: davidwrighton
Labels:

area-NativeAOT-coreclr

Milestone: -

@davidwrighton

Copy link
Copy Markdown
Member Author

I don't think this is worth porting to the release branch. If we need to fix the test there, I think we should just disable the test.

@trylek trylek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks great to me, thanks David! I agree we shouldn't need to backport this change to .NET 8, after all the release branch has at least my original hotfix limiting the recursion depth.

@davidwrighton davidwrighton merged commit 0310abf into dotnet:main Sep 7, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Oct 7, 2023
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.

Test failure Loader/classloader/generics/regressions/DD117522/Test/Test.sh

2 participants