Skip to content

cpu::intel: Do CPU feature detection in Rust.#2439

Merged
briansmith merged 3 commits into
mainfrom
b/fxsr-3
May 21, 2025
Merged

cpu::intel: Do CPU feature detection in Rust.#2439
briansmith merged 3 commits into
mainfrom
b/fxsr-3

Conversation

@briansmith

@briansmith briansmith commented Mar 4, 2025

Copy link
Copy Markdown
Owner

It's easiest to review this PR commit-by-commit.

@briansmith briansmith self-assigned this Mar 4, 2025
@codecov

codecov Bot commented Mar 4, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 83.09859% with 12 lines in your changes missing coverage. Please review.

Project coverage is 96.21%. Comparing base (c633d5e) to head (24bed1c).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/cpu/intel.rs 83.09% 10 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2439      +/-   ##
==========================================
- Coverage   96.56%   96.21%   -0.35%     
==========================================
  Files         182      181       -1     
  Lines       19951    19898      -53     
  Branches      540      527      -13     
==========================================
- Hits        19265    19145     -120     
- Misses        567      638      +71     
+ Partials      119      115       -4     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@briansmith briansmith force-pushed the b/fxsr-3 branch 3 times, most recently from b5065dd to 272682e Compare March 4, 2025 17:27
Comment thread src/cpu/intel.rs
extended_features_ecx = 0;
extended_features_ebx = 0;
}
}

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

As codecov points out, and the comment notes, these lines are unreachable in unpatched versions of ring. (Some people do patch it in ways that make these lines reachable.)

@briansmith briansmith merged commit 934ee03 into main May 21, 2025
172 of 174 checks passed
@briansmith briansmith deleted the b/fxsr-3 branch May 21, 2025 21: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