GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cleanup 1 · python/cpython@428d3e0

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Include/internal
    • pycore_freelist.h
    • pycore_pystate.h
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Include/internal/pycore_freelist.h‎

Copy file name to clipboardExpand all lines: Include/internal/pycore_freelist.h
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ extern "C" {
1717
static inline struct _Py_freelists *
1818
_Py_freelists_GET(void)
1919
{
20+
_Py_AssertHoldsTstate();
2021
#ifdef Py_GIL_DISABLED
2122
PyThreadState *tstate = _PyThreadState_GET();
2223
return &((_PyThreadStateImpl*)tstate)->freelists;
Collapse file

‎Include/internal/pycore_pystate.h‎

Copy file name to clipboardExpand all lines: Include/internal/pycore_pystate.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ static inline PyInterpreterState* _PyInterpreterState_GET(void) {
212212
#if defined(HAVE_THREAD_LOCAL) && !defined(Py_BUILD_CORE_MODULE)
213213
return _Py_tss_interp;
214214
#else
215-
return PyInterpreterState_Get();
215+
return _PyThreadState_GET()->interp;
216216
#endif
217217
}
218218

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.