cpython/Include/internal
Eric Snow 7b20a0f55a
gh-59956: Allow the "Trashcan" Mechanism to Work Without a Thread State (gh-101209)
We've factored out a struct from the two PyThreadState fields. This accomplishes two things:

* make it clear that the trashcan-related code doesn't need any other parts of PyThreadState
* allows us to use the trashcan mechanism even when there isn't a "current" thread state

We still expect the caller to hold the GIL.

https://github.com/python/cpython/issues/59956
2023-01-23 08:30:20 -07:00
..
pycore_abstract.h
pycore_asdl.h
pycore_ast.h
pycore_ast_state.h
pycore_atomic.h
pycore_atomic_funcs.h
pycore_bitutils.h
pycore_blocks_output_buffer.h
pycore_bytes_methods.h
pycore_bytesobject.h
pycore_call.h
pycore_ceval.h
pycore_ceval_state.h gh-81057: Move Ceval Trampoline Globals to _PyRuntimeState (gh-100083) 2022-12-08 17:17:20 -07:00
pycore_code.h GH-100982: Add COMPARE_AND_BRANCH instruction (GH-100983) 2023-01-16 12:35:21 +00:00
pycore_compile.h
pycore_condvar.h
pycore_context.h gh-81057: Move contextvars-related Globals to _PyRuntimeState (gh-99400) 2022-11-16 09:54:28 -07:00
pycore_descrobject.h
pycore_dict.h gh-99845: Change _PyDict_KeysSize() return type to size_t (#99848) 2022-11-29 12:12:17 +01:00
pycore_dict_state.h gh-81057: Move the global Dict-Related Versions to _PyRuntimeState (gh-99497) 2022-11-16 10:37:29 -07:00
pycore_dtoa.h gh-81057: Move More Globals to _PyRuntimeState (gh-100092) 2022-12-07 15:56:31 -07:00
pycore_emscripten_signal.h
pycore_exceptions.h
pycore_faulthandler.h gh-81057: Move faulthandler Globals to _PyRuntimeState (gh-100152) 2022-12-12 09:58:46 -07:00
pycore_fileutils.h
pycore_floatobject.h
pycore_format.h
pycore_frame.h GH-100126: Skip incomplete frames in more places (GH-100613) 2023-01-09 12:20:04 -08:00
pycore_function.h gh-91053: Add an optional callback that is invoked whenever a function is modified (#98175) 2022-11-22 13:06:44 +01:00
pycore_gc.h
pycore_genobject.h GH-99005: More intrinsics (GH-100774) 2023-01-06 14:47:57 +00:00
pycore_getopt.h
pycore_gil.h
pycore_global_objects.h gh-90111: Minor Cleanup for Runtime-Global Objects (gh-100254) 2022-12-14 11:53:57 -07:00
pycore_global_objects_fini_generated.h gh-100228: Warn from os.fork() if other threads exist. (#100229) 2022-12-29 14:41:39 -08:00
pycore_global_strings.h gh-100228: Warn from os.fork() if other threads exist. (#100229) 2022-12-29 14:41:39 -08:00
pycore_hamt.h gh-81057: Move contextvars-related Globals to _PyRuntimeState (gh-99400) 2022-11-16 09:54:28 -07:00
pycore_hashtable.h Use _Py_RVALUE() in macros (#99844) 2022-11-28 17:42:22 +01:00
pycore_import.h
pycore_initconfig.h
pycore_interp.h GH-100000: Cleanup and polish various watchers code (GH-99998) 2022-12-14 19:14:16 +00:00
pycore_interpreteridobject.h
pycore_intrinsics.h GH-99005: More intrinsics (GH-100774) 2023-01-06 14:47:57 +00:00
pycore_list.h gh-100146: Steal references from stack when building a list (#100147) 2023-01-03 10:49:49 -08:00
pycore_long.h gh-99761: Add _PyLong_IsPositiveSingleDigit function to check for single digit integers (#100064) 2022-12-22 17:00:18 +05:30
pycore_moduleobject.h
pycore_namespace.h
pycore_object.h no-issue: Fix typo in pycore_object.h (gh-99994) 2022-12-05 14:42:38 +09:00
pycore_obmalloc.h gh-81057: Move More Globals to _PyRuntimeState (gh-100092) 2022-12-07 15:56:31 -07:00
pycore_obmalloc_init.h gh-81057: Move More Globals to _PyRuntimeState (gh-100092) 2022-12-07 15:56:31 -07:00
pycore_opcode.h GH-100982: Add COMPARE_AND_BRANCH instruction (GH-100983) 2023-01-16 12:35:21 +00:00
pycore_parser.h gh-81057: Move the Cached Parser Dummy Name to _PyRuntimeState (#100277) 2022-12-16 13:48:03 +00:00
pycore_pathconfig.h
pycore_pyarena.h
pycore_pyerrors.h
pycore_pyhash.h
pycore_pylifecycle.h gh-59956: Clarify GILState-related Code (gh-101161) 2023-01-19 16:04:14 -07:00
pycore_pymath.h
pycore_pymem.h gh-81057: Move tracemalloc Globals to _PyRuntimeState (gh-100151) 2022-12-12 08:44:23 -07:00
pycore_pymem_init.h
pycore_pystate.h gh-59956: Clarify GILState-related Code (gh-101161) 2023-01-19 16:04:14 -07:00
pycore_pythread.h gh-81057: Fix the wasm32-wasi Buildbot (gh-100139) 2022-12-09 10:17:54 -07:00
pycore_range.h gh-89189: More compact range iterator (GH-27986) 2022-11-30 23:04:30 +02:00
pycore_runtime.h gh-59956: Allow the "Trashcan" Mechanism to Work Without a Thread State (gh-101209) 2023-01-23 08:30:20 -07:00
pycore_runtime_init.h gh-59956: Clarify GILState-related Code (gh-101161) 2023-01-19 16:04:14 -07:00
pycore_runtime_init_generated.h gh-100228: Warn from os.fork() if other threads exist. (#100229) 2022-12-29 14:41:39 -08:00
pycore_signal.h gh-81057: Move Signal-Related Globals to _PyRuntimeState (gh-100085) 2022-12-12 16:50:19 -07:00
pycore_sliceobject.h
pycore_strhex.h
pycore_structseq.h
pycore_symtable.h
pycore_sysmodule.h
pycore_time.h gh-81057: Move time Globals to _PyRuntimeState (gh-100122) 2022-12-08 16:46:09 -07:00
pycore_token.h
pycore_traceback.h
pycore_tracemalloc.h gh-81057: Move tracemalloc Globals to _PyRuntimeState (gh-100151) 2022-12-12 08:44:23 -07:00
pycore_tuple.h GH-100110: Specialize FOR_ITER for tuples (GH-100109) 2022-12-09 10:27:01 +00:00
pycore_typeobject.h gh-92216: improve performance of hasattr for type objects (GH-99979) 2022-12-23 23:23:36 +08:00
pycore_ucnhash.h
pycore_unicodeobject.h gh-81057: Move More Globals to _PyRuntimeState (gh-100092) 2022-12-07 15:56:31 -07:00
pycore_unicodeobject_generated.h gh-100228: Warn from os.fork() if other threads exist. (#100229) 2022-12-29 14:41:39 -08:00
pycore_unionobject.h
pycore_warnings.h