Skip to content

deps: Prefer portable_atomic over native AtomicU64#3994

Merged
rklaehn merged 1 commit intomainfrom
portable-u64-atomics
Mar 4, 2026
Merged

deps: Prefer portable_atomic over native AtomicU64#3994
rklaehn merged 1 commit intomainfrom
portable-u64-atomics

Conversation

@rklaehn
Copy link
Copy Markdown
Contributor

@rklaehn rklaehn commented Mar 4, 2026

Description

On some 32 bit platforms there is no AtomicU64. Portable_atomic uses the underlying atomic on 64 bit platforms, so there is no perf overhead on those.

We already have portable_atomic in the deps, from moka and once_cell. So there is no additional dependency cost.

This is needed to get iroh to work on 32 bit platforms without native support for AtomicU64.

Breaking Changes

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.
    • List all breaking changes in the above "Breaking Changes" section.
    • Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are:

On some 32 bit platforms there is no AtomicU64. Portable_atomic uses the
underlying atomic on 64 bit platforms, so there is no perf overhead on those.

We already have portable_atomic in the deps,
@rklaehn rklaehn force-pushed the portable-u64-atomics branch from 991ee28 to 5d2263a Compare March 4, 2026 13:58
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 4, 2026

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/3994/docs/iroh/

Last updated: 2026-03-04T14:00:53Z

@rklaehn rklaehn mentioned this pull request Mar 4, 2026
10 tasks
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 4, 2026

Netsim report & logs for this PR have been generated and is available at: LOGS
This report will remain available for 3 days.

Last updated for commit: 2d0813b

@n0bot n0bot bot added this to iroh Mar 4, 2026
@github-project-automation github-project-automation bot moved this to 🚑 Needs Triage in iroh Mar 4, 2026
@rklaehn rklaehn requested a review from dignifiedquire March 4, 2026 15:01
@rklaehn rklaehn added this pull request to the merge queue Mar 4, 2026
Merged via the queue into main with commit ae4877e Mar 4, 2026
28 of 29 checks passed
@github-project-automation github-project-automation bot moved this from 🚑 Needs Triage to ✅ Done in iroh Mar 4, 2026
@rklaehn rklaehn deleted the portable-u64-atomics branch March 5, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants