Skip to content

Cleanup atomics and fix deadlock in DP bucket_can_pool() #1127

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

Closed
wants to merge 0 commits into from

Conversation

bratpiorka
Copy link
Contributor

@bratpiorka bratpiorka commented Feb 21, 2025

Cleanup atomics and replace while(true) loop in Disjoint Pool bucket_can_pool() with a pair of atomic add/sub.

fix for #1125 and #1115

This PR is required by #1143

@bratpiorka bratpiorka force-pushed the rrudnick_fix_dp_atomic branch 5 times, most recently from c570a42 to 7bd9fd3 Compare February 24, 2025 09:29
@vinser52
Copy link
Contributor

@bratpiorka we have the following issue in the backlog: #886.
Might it be related to the issue you are trying to fix?

@bratpiorka bratpiorka force-pushed the rrudnick_fix_dp_atomic branch 24 times, most recently from 6861168 to b294cc6 Compare February 25, 2025 13:36
@bratpiorka bratpiorka force-pushed the rrudnick_fix_dp_atomic branch from 436aac8 to 7cba692 Compare February 28, 2025 14:16
@bratpiorka bratpiorka force-pushed the rrudnick_fix_dp_atomic branch 2 times, most recently from ca4a8f1 to b41f1dd Compare February 28, 2025 17:25
@bratpiorka bratpiorka force-pushed the rrudnick_fix_dp_atomic branch 8 times, most recently from 7127d89 to 092bad7 Compare March 3, 2025 15:53
ASSERT_IS_ALIGNED((uintptr_t)ptr, 8);
ASSERT_IS_ALIGNED((uintptr_t)out, 8);
__atomic_load(ptr, out, memory_order_acquire);
//utils_annotate_acquire(ptr);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is it commented?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

@bratpiorka bratpiorka force-pushed the rrudnick_fix_dp_atomic branch 4 times, most recently from d71076a to 0291b0c Compare March 4, 2025 06:39
@bratpiorka bratpiorka requested a review from lplewa March 4, 2025 06:40
@bratpiorka
Copy link
Contributor Author

@lplewa please re-review

@bratpiorka bratpiorka marked this pull request as ready for review March 4, 2025 10:45
@bratpiorka bratpiorka force-pushed the rrudnick_fix_dp_atomic branch from 0291b0c to 0f540bc Compare March 4, 2025 11:59
@bratpiorka bratpiorka closed this Mar 4, 2025
@bratpiorka bratpiorka force-pushed the rrudnick_fix_dp_atomic branch from 0f540bc to eae8d63 Compare March 4, 2025 12:03
@bratpiorka
Copy link
Contributor Author

continue in #1151

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.

5 participants