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

Skip to content

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Jul 22, 2023

Follow up on #87865

@jkotas jkotas requested a review from MichalStrehovsky as a code owner July 22, 2023 03:34
@ghost ghost added the area-PAL-coreclr label Jul 22, 2023
@ghost ghost assigned jkotas Jul 22, 2023
@jkotas jkotas requested a review from tannergooding July 22, 2023 03:35
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DWORD64 FeatureMask = GetEnabledXStateFeatures();
links to GetEnabledXStateFeatures directly, so it is safe to delete the dynamic linking here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's worth noting that the original reason for the dynamic linking was to support Windows 7 prior to SP1.

With Win7 support having been dropped and us just not regressing Win 7 SP1 and later, this is fine.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have noticed these unused files thanks to IsProcessorFeaturePresent call.

@jkotas jkotas changed the title Unity hardware feature detection between CoreCLR JIT and AOT Unify hardware feature detection between CoreCLR JIT and AOT Jul 22, 2023
@am11
Copy link
Member

am11 commented Jul 22, 2023

cc @gbalykov, if we ever added RISC-V support in src/native/minipal/cpufeatures.c, I think we can make it return the features per-hart (as each hardware thread in RISC-V can technically have different features, e.g. virtual memory range sizes; for which GC can be fine-tuned).

@jkotas jkotas force-pushed the intrinsic-detection branch from e3227d8 to 539b8e5 Compare July 22, 2023 14:26
@jkotas jkotas merged commit 66556c4 into dotnet:main Jul 23, 2023
@jkotas jkotas deleted the intrinsic-detection branch July 23, 2023 04:13
@ghost ghost locked as resolved and limited conversation to collaborators Aug 22, 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.

3 participants