Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,11 @@ tstate_set_stack(PyThreadState *tstate,
uintptr_t base, uintptr_t top)
{
assert(base < top);
#if _Py_STACK_GROWS_DOWN
assert((top - base) >= _PyOS_MIN_STACK_SIZE);
#else
assert((base - top) >= _PyOS_MIN_STACK_SIZE);
#endif

#ifdef _Py_THREAD_SANITIZER
// Thread sanitizer crashes if we use more than half the stack.
Expand Down
Loading