You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…#44047)
### Rationale for this change
Fix threading bugs that could leads to races under the free-threaded build.
### What changes are included in this PR?
- Use `PySequence_ITEM` instead of the `Fast` variant on lists under the free-threaded build.
- Use `std::once_flag` to make sure that `pandas` staic data only gets initialized once.
### Are these changes tested?
Yes.
### Are there any user-facing changes?
No.
* GitHub Issue: #44046
Lead-authored-by: Lysandros Nikolaou <[email protected]>
Co-authored-by: Antoine Pitrou <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
…pandas (apache#44047)
### Rationale for this change
Fix threading bugs that could leads to races under the free-threaded build.
### What changes are included in this PR?
- Use `PySequence_ITEM` instead of the `Fast` variant on lists under the free-threaded build.
- Use `std::once_flag` to make sure that `pandas` staic data only gets initialized once.
### Are these changes tested?
Yes.
### Are there any user-facing changes?
No.
* GitHub Issue: apache#44046
Lead-authored-by: Lysandros Nikolaou <[email protected]>
Co-authored-by: Antoine Pitrou <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
Describe the bug, including details regarding any error messages, version, and platform.
Sub-issue of #43536.
There's two threading related bugs under the free-threaded build:
PySequence_Fast_GET_ITEM
, which I'd missed in GH-43536: [Python] Do not use borrowed references APIs #43540.pandas
initialization using multiple threads.Component(s)
Python
The text was updated successfully, but these errors were encountered: