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 for COM Weakreference test failure under JIT stress. #79476

Merged
merged 2 commits into from
Dec 10, 2022

Conversation

VSadov
Copy link
Member

@VSadov VSadov commented Dec 9, 2022

JIT stress changes inlining heuristics and may cause methods to inline when they otherwise would not. That can extend life times of locals and temps in those methods.
If a testcase depends on the local/temps life times to be within some method, it needs to ensure that the method is not inlined, so that the testcase behavior is the same regardless of JIT settings.

Fixes: #78945

@VSadov
Copy link
Member Author

VSadov commented Dec 9, 2022

@VSadov
Copy link
Member Author

VSadov commented Dec 10, 2022

Thanks!!!

@VSadov VSadov merged commit 9b5b977 into dotnet:main Dec 10, 2022
@VSadov VSadov deleted the wrFix2 branch December 10, 2022 01:39
@ghost ghost locked as resolved and limited conversation to collaborators Jan 9, 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: Interop\\COM\\ComWrappers\\WeakReference\\WeakReferenceTest\\WeakReferenceTest.cmd
2 participants