KEMBAR78
[3.14] gh-131788: make resource_tracker re-entrant safe (GH-131787) by miss-islington · Pull Request #137737 · python/cpython · GitHub
Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Aug 13, 2025

  • make resource_tracker re-entrant safe
  • Update Lib/multiprocessing/resource_tracker.py
  • trim trailing whitespace
  • use f-string and args = [x, *y, z]
  • raise self._reentrant_call_error

(cherry picked from commit f24a012)

Co-authored-by: Thomas Grainger tagrain@gmail.com
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Gregory P. Smith greg@krypto.org

* make resource_tracker re-entrant safe
* Update Lib/multiprocessing/resource_tracker.py
* trim trailing whitespace
* use f-string and args = [x, *y, z]
* raise self._reentrant_call_error

---------
(cherry picked from commit f24a012)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
@gpshead
Copy link
Member

gpshead commented Aug 20, 2025

do-not-merge added due to #131788 (comment) questions

@zanieb
Copy link
Contributor

zanieb commented Oct 16, 2025

Per the resolution at #138031 (comment) this seems safe to merge (see also, my comment at #131788 (comment))

@ngoldbaum
Copy link
Contributor

That would also help with adding tests for mypyc on 3.14t: mypyc/mypyc#1136 (comment). Currently the tests fail there due to errors caused by re-entrant resource tracking.

@gpshead gpshead added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Oct 17, 2025
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @gpshead for commit 0faaf50 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F137737%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Oct 17, 2025
@gpshead gpshead self-assigned this Oct 17, 2025
@gpshead gpshead merged commit 5513f6a into python:3.14 Oct 17, 2025
105 of 114 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants