Skip to content

Merge atomic counter inc/dec functions and use them consistently #3644

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

Merged
merged 1 commit into from
Mar 20, 2025

Conversation

NickBarnes
Copy link
Contributor

This is the flambda-backend version of ocaml/ocaml#13593, providing a single set of functions for incrementing/decrementing/initialising atomic uintnat counters, and using them throughout the runtime. A small step towards simplifying and clarifying GC code (the major GC uses the obscurely-named atomic_fetch_add_verify_ge0 extensively, but only for adding or subtracting 1, and the behaviour matched the existing caml_atomic_refcount_incr/_decr, which was not specific to refcounts).

@NickBarnes NickBarnes marked this pull request as ready for review March 3, 2025 15:07
@NickBarnes NickBarnes requested a review from stedolan March 4, 2025 17:09
@NickBarnes NickBarnes force-pushed the unify_atomics branch 3 times, most recently from ff9267b to 6b7c283 Compare March 13, 2025 15:15
@mshinwell mshinwell merged commit f7e9aca into ocaml-flambda:main Mar 20, 2025
22 checks passed
mshinwell added a commit that referenced this pull request Apr 2, 2025
mshinwell added a commit that referenced this pull request Apr 2, 2025
…tly" (#3781)

Revert "Merge atomic counter inc/dec functions and use them consistently (#3644)"

This reverts commit f7e9aca.
mshinwell added a commit that referenced this pull request Apr 2, 2025
…tly" (#3781)

Revert "Merge atomic counter inc/dec functions and use them consistently (#3644)"

This reverts commit f7e9aca.

(cherry picked from commit a3cd516)
NickBarnes added a commit to NickBarnes/flambda-backend that referenced this pull request Apr 3, 2025
…ml-flambda#3644)

Merge atomic counter inc/dec functions and use them consistently.
NickBarnes added a commit to NickBarnes/flambda-backend that referenced this pull request Apr 3, 2025
…ml-flambda#3644)

Merge atomic counter inc/dec functions and use them consistently.
NickBarnes added a commit to NickBarnes/flambda-backend that referenced this pull request Apr 14, 2025
…ml-flambda#3644)

Merge atomic counter inc/dec functions and use them consistently.
gretay-js pushed a commit to gretay-js/flambda-backend that referenced this pull request Apr 21, 2025
…tly" (ocaml-flambda#3781)

Revert "Merge atomic counter inc/dec functions and use them consistently (ocaml-flambda#3644)"

This reverts commit f7e9aca.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants