GH-139193: Fix dump_stack when PYTHON_LLTRACE=4 (GH-139384)

This commit is contained in:
Sergey Miryanov
2025-10-22 18:14:25 +05:00
committed by GitHub
parent e53e9eb2f1
commit a4709e525f
2 changed files with 10 additions and 0 deletions

View File

@@ -296,6 +296,12 @@ PyStackRef_IsError(_PyStackRef ref)
return ref.bits == Py_TAG_INVALID;
}
static inline bool
PyStackRef_IsMalformed(_PyStackRef ref)
{
return (ref.bits & Py_TAG_BITS) == Py_TAG_INVALID;
}
static inline bool
PyStackRef_IsValid(_PyStackRef ref)
{