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 atomics in critnib find_* #1175

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

ldorau
Copy link
Contributor

@ldorau ldorau commented Mar 10, 2025

Description

It fixes ThreadSanitizer data race in find_predecessor() vs critnib_insert() and critnib_remove().

It fixes the following failures:
https://github.com/oneapi-src/unified-memory-framework/actions/runs/13724176734/job/38387107349?pr=998
https://github.com/oneapi-src/unified-memory-framework/actions/runs/13724176734/job/38475443684?pr=998

Checklist

  • Code compiles without errors locally
  • All tests pass locally
  • CI workflows execute properly

It fixes ThreadSanitizer data race in find_predecessor()
vs critnib_insert() and critnib_remove().

Signed-off-by: Lukasz Dorau <[email protected]>
@ldorau ldorau requested a review from a team as a code owner March 10, 2025 10:18
@ldorau ldorau merged commit 01881bd into oneapi-src:main Mar 10, 2025
80 of 81 checks passed
@ldorau
Copy link
Contributor Author

ldorau commented Mar 10, 2025

The failed CI job will be suppressed in #998

@ldorau ldorau deleted the Use_atomics_in_critnib_find_ branch March 10, 2025 11:14
ldorau added a commit to ldorau/unified-memory-framework that referenced this pull request Mar 10, 2025
Use atomics in find_successor() like in find_predecessor().

Ref: oneapi-src#1175

Signed-off-by: Lukasz Dorau <[email protected]>
ldorau added a commit to ldorau/unified-memory-framework that referenced this pull request Mar 11, 2025
Use atomics in find_successor() like in find_predecessor().

Ref: oneapi-src#1175

Signed-off-by: Lukasz Dorau <[email protected]>
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