FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-112532: Fix memory block count for free-threaded build by colesbury · Pull Request #113995 · python/cpython · GitHub

Repository navigation

gh-112532: Fix memory block count for free-threaded build - #113995

Merged
corona10 merged 1 commit into
python:mainfrom
colesbury:gh-112532-refleaks
Jan 15, 2024
Merged

corona10 merged 1 commit into
python:mainfrom
colesbury:gh-112532-refleaks

Conversation

colesbury commented Jan 12, 2024 •
edited
Loading

Copy link
Copy Markdown
Contributor

This fixes _PyInterpreterState_GetAllocatedBlocks() and _Py_GetGlobalAllocatedBlocks() in the free-threaded builds. The gh-113263 change, which introduced multiple mimalloc heaps per-thread, broke the logic for counting the number of allocated blocks. For subtle reasons, this led to reported reference count leaks in the refleaks buildbots.

This fixes `_PyInterpreterState_GetAllocatedBlocks()` and
`_Py_GetGlobalAllocatedBlocks()` in the free-threaded builds. The
pythongh-113263 change that introduced multiple mimalloc heaps per-thread
broke the logic for counting the number of allocated blocks. For subtle
reasons, this led to reported reference count leaks in the refleaks
buildbots.

Copy link
Copy Markdown
Contributor Author

!buildbot nogil

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @colesbury for commit 89dfbf1 🤖

The command will test the builders whose names match following regular expression: nogil

The builders matched are:

  • ARM64 MacOS M1 (No) NoGIL Refleaks PR
  • x86-64 MacOS Intel ASAN (No) NoGIL PR
  • AMD64 Windows Server 2022 NoGIL PR
  • AMD64 Ubuntu NoGIL Refleaks PR
  • AMD64 Ubuntu NoGIL PR
  • x86-64 MacOS Intel NoGIL PR
  • ARM64 MacOS M1 NoGIL PR

corona10 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

test_socket issue is another issue
See: #112532 (comment)

colesbury marked this pull request as ready for review January 15, 2024 15:35

Copy link
Copy Markdown
Contributor Author

Thanks @corona10, this is ready to go now.

corona10 merged commit 44e47df into python:main Jan 15, 2024
kulikjak pushed a commit to kulikjak/cpython that referenced this pull request Jan 22, 2024
…ongh-113995)

This fixes `_PyInterpreterState_GetAllocatedBlocks()` and
`_Py_GetGlobalAllocatedBlocks()` in the free-threaded builds. The
pythongh-113263 change that introduced multiple mimalloc heaps per-thread
broke the logic for counting the number of allocated blocks. For subtle
reasons, this led to reported reference count leaks in the refleaks
buildbots.
colesbury deleted the gh-112532-refleaks branch January 23, 2024 17:11
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…ongh-113995)

This fixes `_PyInterpreterState_GetAllocatedBlocks()` and
`_Py_GetGlobalAllocatedBlocks()` in the free-threaded builds. The
pythongh-113263 change that introduced multiple mimalloc heaps per-thread
broke the logic for counting the number of allocated blocks. For subtle
reasons, this led to reported reference count leaks in the refleaks
buildbots.
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…ongh-113995)

This fixes `_PyInterpreterState_GetAllocatedBlocks()` and
`_Py_GetGlobalAllocatedBlocks()` in the free-threaded builds. The
pythongh-113263 change that introduced multiple mimalloc heaps per-thread
broke the logic for counting the number of allocated blocks. For subtle
reasons, this led to reported reference count leaks in the refleaks
buildbots.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL