Skip to content

bpo-39465: Use _PyInterpreterState_GET() - #20788

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:interp_get
Jun 10, 2020
Merged

bpo-39465: Use _PyInterpreterState_GET()#20788
vstinner merged 1 commit into
python:masterfrom
vstinner:interp_get

Conversation

@vstinner

@vstinner vstinner commented Jun 10, 2020

Copy link
Copy Markdown
Member

Replace _PyThreadState_GET() with _PyInterpreterState_GET() in:

  • get_small_int()
  • gcmodule.c: add also get_gc_state() function
  • _PyTrash_deposit_object()
  • _PyTrash_destroy_chain()
  • warnings_get_state()
  • Py_GetRecursionLimit()

https://bugs.python.org/issue39465

Replace _PyThreadState_GET() with _PyInterpreterState_GET() in:

* get_small_int()
* gcmodule.c: add also get_gc_state() function
* _PyTrash_deposit_object()
* _PyTrash_destroy_chain()
* warnings_get_state()
* Py_GetRecursionLimit()

Cleanup listnode.c: add 'parser' variable.
@vstinner
vstinner merged commit 1bcc32f into python:master Jun 10, 2020
@vstinner
vstinner deleted the interp_get branch June 10, 2020 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants