diff options
| author | Sam Gross <colesbury@gmail.com> | 2025-04-07 18:13:02 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-07 18:13:02 (GMT) |
| commit | 1fcf409acef8a7a039353cf11a0bbb24ca6722f8 (patch) | |
| tree | 1bdb6951ceb073e0f8ce1d6fec4aaa6c4a102e7b /Include/cpython/code.h | |
| parent | bd2f518555e8da6690757645e6b8dde932e1a41d (diff) | |
| download | cpython-1fcf409acef8a7a039353cf11a0bbb24ca6722f8.zip cpython-1fcf409acef8a7a039353cf11a0bbb24ca6722f8.tar.gz cpython-1fcf409acef8a7a039353cf11a0bbb24ca6722f8.tar.bz2 | |
[3.13] gh-131988: Fix a multithreaded scaling regression (#131989)
gh-131988: Fix a multithreaded scaling regression
The 3.13 free threaded build immortalizes certain objects to avoid
reference count contention. In gh-127114 the condition was
unintentionally changed to happen when the first thread was created
instead of the first non-main thread. The `interp->gc.immortalize` field
is then cleared again during `_PyGC_Init()`.
Change the condition so that we check if we should immortalize objects
using deferred reference counting whenever a non-main thread is created.
Diffstat (limited to 'Include/cpython/code.h')
0 files changed, 0 insertions, 0 deletions
