-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[mono] Use underlying type in RuntimeHelpers.GetSpanDataFrom #87019
Conversation
Make it work correctly for spans of enums Fixes dotnet#86865 Note that in net8 RuntimeHelpers.CreateSpan<T> is an intrinsic, so GetSpanDataFrom is never called directly. But in net7 CreateSpan is not intrinsified on Mono, so the underlying method really does get called.
Tagging subscribers to this area: @dotnet/area-system-runtime-compilerservices Issue DetailsMake it work correctly for spans of enums Fixes #86865 Note that in net8 RuntimeHelpers.CreateSpan is an intrinsic, so GetSpanDataFrom is never called directly. But in net7 CreateSpan is not intrinsified on Mono, so the underlying method really does get called.
|
This isn't super-critical for net8, but the intention is to backport this to net7 |
/backport to release/7.0-staging |
Started backporting to release/7.0-staging: https://github.com/dotnet/runtime/actions/runs/5147526682 |
Make it work correctly for spans of enums
Fixes #86865
Note that in net8 RuntimeHelpers.CreateSpan is an intrinsic, so GetSpanDataFrom is never called directly.
But in net7 CreateSpan is not intrinsified on Mono, so the underlying method really does get called.