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

gh-112529: Use _PyThread_Id() in mimalloc (free-threaded build) #115488

Merged
merged 1 commit into from Feb 14, 2024

Conversation

colesbury
Copy link
Contributor

@colesbury colesbury commented Feb 14, 2024

The free-threaded GC uses mimallocs segment thread IDs to restore the overwritten ob_tid thread ids in PyObjects. For that reason, it's important that PyObjects and mimalloc use the same identifiers.

The free-threaded GC uses mimallocs segment thread IDs to restore
the overwritten `ob_tid` thread ids in PyObjects. For that reason, it's
important that PyObjects and mimalloc use the same identifiers.
Copy link
Contributor

@DinoV DinoV left a comment

Choose a reason for hiding this comment

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

LGTM!

@colesbury colesbury merged commit 326119d into python:main Feb 14, 2024
38 checks passed
@colesbury colesbury deleted the gh-112529-thread-id branch February 14, 2024 21:41
colesbury added a commit to colesbury/cpython that referenced this pull request Feb 15, 2024
…ded build"

Reverts: python#115488
Reason: Free-threaded Ubuntu buildbots are timing out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants