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

fix: AtomicI64, AtomicU64 for build mipsel processor #2301

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

TGLuong
Copy link

@TGLuong TGLuong commented Nov 16, 2024

Fixes #
Design discussion issue (if applicable) #

Changes

  • Use portable-atomic for mipsel processor. Because when build for mipsel architecture, it don't have AtomicI64, AtomicU64 in std.

Please provide a brief description of the changes here.

Merge requirement checklist

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated (if applicable)
  • Appropriate CHANGELOG.md files updated for non-trivial, user-facing changes
  • Changes in public API reviewed (if applicable)

@TGLuong TGLuong requested a review from a team as a code owner November 16, 2024 09:20
Copy link

codecov bot commented Nov 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.6%. Comparing base (3ac2d9f) to head (c7d2896).

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #2301   +/-   ##
=====================================
  Coverage   79.6%   79.6%           
=====================================
  Files        123     123           
  Lines      21263   21263           
=====================================
+ Hits       16938   16940    +2     
+ Misses      4325    4323    -2     

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

@TGLuong
Copy link
Author

TGLuong commented Nov 16, 2024

ref: #2054

@TGLuong TGLuong changed the title fix: AtomicI64, AtomicU64 for build mipsel processor [WIP] fix: AtomicI64, AtomicU64 for build mipsel processor Nov 16, 2024
@TGLuong TGLuong changed the title [WIP] fix: AtomicI64, AtomicU64 for build mipsel processor fix: AtomicI64, AtomicU64 for build mipsel processor Nov 16, 2024
@@ -18,6 +18,12 @@ pub(crate) use exponential_histogram::{EXPO_MAX_SCALE, EXPO_MIN_SCALE};
use once_cell::sync::Lazy;
use opentelemetry::{otel_warn, KeyValue};

#[cfg(any(target_arch = "mips", target_arch = "powerpc"))]
use portable_atomic::{AtomicBool, AtomicI64, AtomicU64, AtomicUsize};
Copy link
Member

Choose a reason for hiding this comment

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

are these the only place this SDK uses Atomics?

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.

2 participants