Skip to content

Conversation

davidwrighton
Copy link
Member

Do not eagerly allocate static variable space while loading the assembly in use. This avoids possible recursive loading issues found in C++/CLI codebases. Repurpose the NativeCallingManaged test to subsume this particular regression test case.

Fix #110365

…bly in use. This avoids possible recursive loading issues found in C++/CLI codebases. Repurpose the NativeCallingManaged test to subsume this particular regression test case.

Fix dotnet#110365
Copy link
Member

@AaronRobinsonMSFT AaronRobinsonMSFT left a comment

Choose a reason for hiding this comment

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

Repurposing this test makes sense to me. I have a question on the type loading sequence though.

@davidwrighton
Copy link
Member Author

/backport to release/9.0-staging

Copy link
Contributor

github-actions bot commented Dec 6, 2024

Started backporting to release/9.0-staging: https://github.com/dotnet/runtime/actions/runs/12207714479

@github-actions github-actions bot locked and limited conversation to collaborators Jan 6, 2025
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.

C++/CLI __declspec(appdomain) static variables cause a C++/CLI binary to fail to load.

2 participants