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

Use AtomicUsize rather than AtomicU64 in CacheKey. #70

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

xorgy
Copy link
Collaborator

@xorgy xorgy commented Nov 6, 2024

AtomicU64 is unavailable on most 32-bit targets, but AtomicUsize is available most targets.

It is exceedingly unlikely that there will be more CacheKeys than bytes in the process address space.

`AtomicU64` is unavailable on most 32-bit targets,
but `AtomicUsize` is available most targets.

It is exceedingly unlikely that there will be more `CacheKey`s
than bytes in the process address space.
@xorgy
Copy link
Collaborator Author

xorgy commented Nov 6, 2024

This patch is a subset of #69 which avoids a breaking change, may be superseded by #69 for our next breaking release.

Copy link
Owner

@dfrg dfrg left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for reducing the scope.

@dfrg dfrg merged commit b1b54cc into dfrg:main Nov 7, 2024
7 checks passed
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