Skip to content
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

cpu arm: Fix static feature detection initialization. #1842

Merged
merged 1 commit into from
Dec 2, 2023
Merged

Conversation

briansmith
Copy link
Owner

Commit f932b94 was incomplete and wrong. On targets where we do any static or dynamic feature detection and where we have these global variables, we need to unconditionally write the detected features to the global variable so that assembly can see them. Since we do static feature detection regardless of operating system, the initialization of the global most be done without any conditions on the operating system.

@briansmith briansmith self-assigned this Dec 1, 2023
@briansmith briansmith added this to the 0.17.7 milestone Dec 1, 2023
Copy link

codecov bot commented Dec 1, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e530025) 96.01% compared to head (c89a870) 96.01%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1842      +/-   ##
==========================================
- Coverage   96.01%   96.01%   -0.01%     
==========================================
  Files         136      136              
  Lines       20687    20677      -10     
  Branches      226      226              
==========================================
- Hits        19863    19852      -11     
  Misses        791      791              
- Partials       33       34       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Commit f932b94 was incomplete and
wrong. On targets where we do any static or dynamic feature detection
and where we have these global variables, we need to unconditionally
write the detected features to the global variable so that assembly
can see them. Since we do static feature detection regardless of
operating system, the initialization of the global most be done
without any conditions on the operating system.
@briansmith
Copy link
Owner Author

I expanded the CI testing in #1843 and verified that such testing would have prevented this bug.

@briansmith briansmith merged commit febe76d into main Dec 2, 2023
135 of 136 checks passed
@briansmith briansmith deleted the b/once-fix branch December 2, 2023 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant