8000 BUG: Avoid data race in PyArray_CheckFromAny_int by charris · Pull Request #28160 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: Avoid data race in PyArray_CheckFromAny_int #28160

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
Jan 16, 2025

Conversation

charris
Copy link
Member
@charris charris commented Jan 16, 2025

Backport of #28154.

Fixes #28143.

I verified the test triggers TSAN warnings on main and doesn't anymore with this applied.

  • BUG: Avoid data race in PyArray_CheckFromAny_int

  • TST: add test

  • MAINT: simplify byteswapping code in PyArray_CheckFromAny_int

  • MAINT: drop ISBYTESWAPPED check

* BUG: Avoid data race in PyArray_CheckFromAny_int

* TST: add test

* MAINT: simplify byteswapping code in PyArray_CheckFromAny_int

* MAINT: drop ISBYTESWAPPED check
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs 39 - free-threading PRs and issues related to support for free-threading CPython (a.k.a. no-GIL, PEP 703) labels Jan 16, 2025
@charris charris added this to the 2.2.2 release milestone Jan 16, 2025
@charris charris merged commit 32b58cd into numpy:maintenance/2.2.x Jan 16, 2025
68 checks passed
@charris charris deleted the backport-28154 branch January 16, 2025 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug 08 - Backport Used to tag backport PRs 39 - free-threading PRs and issues related to support for free-threading CPython (a.k.a. no-GIL, PEP 703)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0