-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Ensure that OptionsCache only permits creating a single options instance per name #79639
Conversation
…nce per name. This incurs an extra delegate allocation, but only on instance creation. fix dotnet#79529
Tagging subscribers to this area: @dotnet/area-extensions-options Issue DetailsThis incurs an extra delegate allocation, but only on instance creation. fix #79529
|
@madelson the new test is failing on WASM runs.
|
@tarekgh any initial thoughts as to why this would fail on wasm? I'm not too familiar with aspects of that runtime that might be different. Would you expect all the main components the test uses to work as they do on desktop (threads, |
@madelson this may be related to https://github.com/WebAssembly/threads. CC @lewing if has more information here. I would suggest excluding the new test from WASM runs. |
The issue is that you can't do a synchronous wait in the regular wasm runtime. You can either exclude the test or rewrite it to as an async test and await the tasks. |
This test is trying to replicate a parallel concurrency issue and is using For these reasons, I think it makes sense to skip the test on wasm. Let me know if you disagree. |
@tarekgh does the build analysis look good now? Only shows a known error which seems unrelated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @madelson! LGTM.
/backport to release/7.0 |
Started backporting to release/7.0: https://github.com/dotnet/runtime/actions/runs/3833598902 |
This incurs an extra delegate allocation, but only on instance creation.
fix #79529