mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
Make some minor fixups to bug reporting, etc.
This commit is contained in:
parent
84764ce7b8
commit
3f015b1e51
31 changed files with 244 additions and 134 deletions
4
third_party/python/Include/ceval.h
vendored
4
third_party/python/Include/ceval.h
vendored
|
@ -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; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue