This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2020年03月17日 00:53 by vstinner, last changed 2022年04月11日 14:59 by admin. This issue is now closed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 19034 | closed | vstinner, 2020年03月17日 01:01 | |
| PR 19047 | merged | vstinner, 2020年03月17日 17:33 | |
| PR 19049 | merged | vstinner, 2020年03月17日 23:51 | |
| PR 19050 | merged | vstinner, 2020年03月18日 00:00 | |
| PR 19051 | merged | vstinner, 2020年03月18日 00:19 | |
| PR 19054 | merged | vstinner, 2020年03月18日 01:42 | |
| PR 19061 | merged | vstinner, 2020年03月18日 18:03 | |
| PR 19066 | merged | vstinner, 2020年03月19日 00:10 | |
| Messages (14) | |||
|---|---|---|---|
| msg364378 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2020年03月17日 00:53 | |
The _PyRuntime.ceval structure should be made "per-interpreter". I don't want to make the GIL per-interpreter: that's out of the scope of this issue. So I propose to only move a few fields to make more ceval fields "per interpreter". |
|||
| msg364467 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2020年03月17日 17:56 | |
New changeset dab8423d220243efabbbcafafc12d90145539b50 by Victor Stinner in branch 'master': bpo-39984: Add PyInterpreterState.ceval (GH-19047) https://github.com/python/cpython/commit/dab8423d220243efabbbcafafc12d90145539b50 |
|||
| msg364491 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2020年03月18日 00:50 | |
While trying to move pending to PyInterpreterState, I hit in issue in _PyEval_AddPendingCall(): signal.raise_signal() can call it with tstate=NULL. See https://bugs.python.org/issue37127#msg364489 |
|||
| msg364492 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2020年03月18日 00:56 | |
New changeset d7fabc116269e4650a684eb04f9ecd84421aa247 by Victor Stinner in branch 'master': bpo-39984: Pass tstate to handle_signals() (GH-19050) https://github.com/python/cpython/commit/d7fabc116269e4650a684eb04f9ecd84421aa247 |
|||
| msg364493 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2020年03月18日 01:26 | |
New changeset 23ef89db7ae46d160650263cc80479c2ed6693fb by Victor Stinner in branch 'master': bpo-39984: _PyThreadState_DeleteCurrent() takes tstate (GH-19051) https://github.com/python/cpython/commit/23ef89db7ae46d160650263cc80479c2ed6693fb |
|||
| msg364495 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2020年03月18日 02:04 | |
New changeset 29356e03d4f8800b04f799efe7a10e3ce8b16f61 by Victor Stinner in branch 'master': bpo-39877: Fix take_gil() for daemon threads (GH-19054) https://github.com/python/cpython/commit/29356e03d4f8800b04f799efe7a10e3ce8b16f61 |
|||
| msg364503 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2020年03月18日 08:26 | |
New changeset 56bfdebfb17ea9d3245b1f222e92b8e3b1ed6118 by Victor Stinner in branch 'master': bpo-39984: Pass tstate to _PyEval_SignalAsyncExc() (GH-19049) https://github.com/python/cpython/commit/56bfdebfb17ea9d3245b1f222e92b8e3b1ed6118 |
|||
| msg364549 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2020年03月18日 18:28 | |
New changeset 8849e5962ba481d5d414b3467a256aba2134b4da by Victor Stinner in branch 'master': bpo-39984: trip_signal() uses PyGILState_GetThisThreadState() (GH-19061) https://github.com/python/cpython/commit/8849e5962ba481d5d414b3467a256aba2134b4da |
|||
| msg364585 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2020年03月19日 01:41 | |
New changeset 50e6e991781db761c496561a995541ca8d83ff87 by Victor Stinner in branch 'master': bpo-39984: Move pending calls to PyInterpreterState (GH-19066) https://github.com/python/cpython/commit/50e6e991781db761c496561a995541ca8d83ff87 |
|||
| msg365006 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2020年03月25日 17:57 | |
I moved pending calls to PyInterpreterState. There are remaining issues with using pending calls in subinterpreters, but I propose to continue the discussion in bpo-37127. |
|||
| msg365161 - (view) | Author: Eric Snow (eric.snow) * (Python committer) | Date: 2020年03月27日 16:21 | |
Awesome! Thanks for doing this, Victor. I'll take a look when I can and adjust the changes for bpo-33608. If you'll recall, I made a similar change as part of the solution for that issue, which we later reverted due to problems we discovered with daemon threads during runtime finalization. |
|||
| msg365177 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2020年03月27日 17:23 | |
> Awesome! Thanks for doing this, Victor. I'll take a look when I can and adjust the changes for bpo-33608. If you'll recall, I made a similar change as part of the solution for that issue, which we later reverted due to problems we discovered with daemon threads during runtime finalization. I recall the revert dance, yeah. It took one year to fix the daemon threads and related issues! So far, buildbots look happy. I also ran many manual tests which makes me confident that the code is now reliable even with all recent changes done for isolating thread states. |
|||
| msg365998 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2020年04月08日 17:44 | |
I reopen the issue because of bpo-40082 "trip_signal() gets NULL tstate on Windows on CTRL+C" regression. |
|||
| msg366018 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2020年04月08日 21:53 | |
> I reopen the issue because of bpo-40082 "trip_signal() gets NULL tstate on Windows on CTRL+C" regression. bpo-40082 is fixed, so I close the issue again. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:59:28 | admin | set | github: 84165 |
| 2020年05月15日 00:37:52 | vstinner | set | components: + Subinterpreters, - Interpreter Core |
| 2020年04月08日 21:53:48 | vstinner | set | status: open -> closed resolution: fixed messages: + msg366018 |
| 2020年04月08日 17:44:39 | vstinner | set | status: closed -> open resolution: fixed -> (no value) messages: + msg365998 |
| 2020年03月27日 17:23:19 | vstinner | set | messages: + msg365177 |
| 2020年03月27日 16:21:32 | eric.snow | set | nosy:
+ eric.snow messages: + msg365161 |
| 2020年03月25日 17:57:41 | vstinner | set | status: open -> closed title: Move some ceval fields from _PyRuntime.ceval to PyInterpreterState.ceval -> Move pending calls from _PyRuntime to PyInterpreterState messages: + msg365006 resolution: fixed stage: patch review -> resolved |
| 2020年03月19日 04:34:07 | shihai1991 | set | nosy:
+ shihai1991 |
| 2020年03月19日 01:41:27 | vstinner | set | messages: + msg364585 |
| 2020年03月19日 00:10:55 | vstinner | set | pull_requests: + pull_request18420 |
| 2020年03月18日 18:28:57 | vstinner | set | messages: + msg364549 |
| 2020年03月18日 18:03:56 | vstinner | set | pull_requests: + pull_request18414 |
| 2020年03月18日 08:26:28 | vstinner | set | messages: + msg364503 |
| 2020年03月18日 02:04:39 | vstinner | set | messages: + msg364495 |
| 2020年03月18日 01:42:59 | vstinner | set | pull_requests: + pull_request18406 |
| 2020年03月18日 01:26:11 | vstinner | set | messages: + msg364493 |
| 2020年03月18日 00:56:24 | vstinner | set | messages: + msg364492 |
| 2020年03月18日 00:50:47 | vstinner | set | messages: + msg364491 |
| 2020年03月18日 00:19:17 | vstinner | set | pull_requests: + pull_request18402 |
| 2020年03月18日 00:00:44 | vstinner | set | pull_requests: + pull_request18401 |
| 2020年03月17日 23:51:40 | vstinner | set | pull_requests: + pull_request18400 |
| 2020年03月17日 17:56:49 | vstinner | set | messages: + msg364467 |
| 2020年03月17日 17:33:52 | vstinner | set | pull_requests: + pull_request18398 |
| 2020年03月17日 03:31:49 | phsilva | set | nosy:
+ phsilva |
| 2020年03月17日 01:01:59 | vstinner | set | keywords:
+ patch stage: patch review pull_requests: + pull_request18383 |
| 2020年03月17日 00:53:21 | vstinner | create | |