Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

lambdageek
Copy link
Member

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.

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.
@lambdageek lambdageek requested review from vargaz and thaystg as code owners June 1, 2023 17:20
@ghost ghost assigned lambdageek Jun 1, 2023
@ghost ghost added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jun 1, 2023
@ghost
Copy link

ghost commented Jun 1, 2023

Tagging subscribers to this area: @dotnet/area-system-runtime-compilerservices
See info in area-owners.md if you want to be subscribed.

Issue Details

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.

Author: lambdageek
Assignees: lambdageek
Labels:

area-System.Runtime.CompilerServices, needs-area-label

Milestone: -

@lambdageek lambdageek removed the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jun 1, 2023
@lambdageek
Copy link
Member Author

This isn't super-critical for net8, but the intention is to backport this to net7

@lambdageek
Copy link
Member Author

/backport to release/7.0-staging

@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2023

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

@lambdageek lambdageek merged commit 75a1806 into dotnet:main Jun 3, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jul 3, 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.

Cannot initialize array of non-primitive type
3 participants