Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52f9b5f commit ee3dac3Copy full SHA for ee3dac3
1 file changed
Python/ceval.c
@@ -513,8 +513,13 @@ static void
513
tstate_set_stack(PyThreadState *tstate,
514
uintptr_t base, uintptr_t top)
515
{
516
+#if _Py_STACK_GROWS_DOWN
517
assert(base < top);
518
assert((top - base) >= _PyOS_MIN_STACK_SIZE);
519
+#else
520
+ assert(base <= top);
521
+ assert((base - top) >= _PyOS_MIN_STACK_SIZE);
522
+#endif
523
524
#ifdef _Py_THREAD_SANITIZER
525
// Thread sanitizer crashes if we use more than half the stack.
0 commit comments