◐ Shell
clean mode source ↗

[3.12] gh-119213: Fix getargs.c to store state in InterpreterState... by 1st1 · Pull Request #119194 · python/cpython

...as opposed to storing it in PyRuntime. Storing it in PyRuntime
is fundametally wrong, as its state contains references to Python
objects. Those objects (tuples and strings) can (and will) be
picked by various subinterpreter clean up code, leaving PyRuntime
with broken pointers.

1st1

@1st1 1st1 mentioned this pull request

May 20, 2024

Yury Selivanov added 3 commits

May 19, 2024 21:40

@ericsnowcurrently ericsnowcurrently changed the title Fix getargs.c to store state in InterpreterState... gh-119213: Fix getargs.c to store state in InterpreterState...

May 20, 2024

@Eclips4 Eclips4 changed the title gh-119213: Fix getargs.c to store state in InterpreterState... [3.12] gh-119213: Fix getargs.c to store state in InterpreterState...

May 20, 2024