Skip to content

bpo-39465: Use _PyInterpreterState_GET() #20788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2020
Merged

bpo-39465: Use _PyInterpreterState_GET() #20788

merged 1 commit into from
Jun 10, 2020

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jun 10, 2020

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
arun-mani-j pushed a commit to arun-mani-j/cpython that referenced this pull request Jul 21, 2020
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants