-
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
Unify hardware feature detection between CoreCLR JIT and AOT #89342
Conversation
if (hMod == NULL) | ||
return 0; | ||
|
||
pfnGetEnabledXStateFeatures = (PGETENABLEDXSTATEFEATURES)GetProcAddress(hMod, "GetEnabledXStateFeatures"); |
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.
runtime/src/coreclr/vm/threadsuspend.cpp
Line 1972 in 08a6e06
DWORD64 FeatureMask = GetEnabledXStateFeatures(); |
GetEnabledXStateFeatures
directly, so it is safe to delete the dynamic linking here.
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.
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.
@@ -1,148 +0,0 @@ | |||
;; Licensed to the .NET Foundation under one or more agreements. |
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.
I have noticed these unused files thanks to IsProcessorFeaturePresent
call.
cc @gbalykov, if we ever added RISC-V support in |
e3227d8
to
539b8e5
Compare
Follow up on #87865