Make some minor fixups to bug reporting, etc.

This commit is contained in:
Justine Tunney 2022-07-11 05:55:17 -07:00
parent 84764ce7b8
commit 3f015b1e51
31 changed files with 244 additions and 134 deletions

View file

@ -112,14 +112,14 @@ int _Py_CheckRecursiveCall(const char *);
#define Py_EnterRecursiveCall(where) \
({ \
int rc = 0; \
intptr_t rsp, bot; \
intptr_t rsp, bot; \
if (!IsTiny()) { \
if (IsModeDbg()) { \
PyThreadState_GET()->recursion_depth++; \
rc = _Py_CheckRecursiveCall(where); \
} else { \
rsp = (intptr_t)__builtin_frame_address(0); \
bot = (intptr_t)GetStackAddr(32768); \
bot = GetStackAddr() + 32768; \
if (UNLIKELY(rsp < bot)) { \
PyErr_Format(PyExc_MemoryError, "Stack overflow%s", where); \
rc = -1; \