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

Fix C++/CLI applications which use __declspec(appdomain) #110367

Merged
merged 2 commits into from
Dec 6, 2024

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.

src/coreclr/vm/methodtable.cpp Show resolved Hide resolved
@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

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.

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