Skip to content

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