File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Misc/NEWS.d/next/Core and Builtins Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1+ Set the thread stack size to 8 Mb for debug builds on android platforms.
Original file line number Diff line number Diff line change 5151#undef THREAD_STACK_SIZE
5252#define THREAD_STACK_SIZE 0x200000
5353#endif
54+ /* bpo-38852: test_threading.test_recursion_limit() checks that 1000 recursive
55+ Python calls (default recursion limit) doesn't crash, but raise a regular
56+ RecursionError exception. In debug mode, Python function calls allocates
57+ more memory on the stack, so use a stack of 8 MiB. */
58+ #if defined(__ANDROID__ ) && defined(THREAD_STACK_SIZE ) && THREAD_STACK_SIZE == 0
59+ # ifdef Py_DEBUG
60+ # undef THREAD_STACK_SIZE
61+ # define THREAD_STACK_SIZE 0x800000
62+ # endif
63+ #endif
5464/* for safety, ensure a viable minimum stacksize */
5565#define THREAD_STACK_MIN 0x8000 /* 32 KiB */
5666#else /* !_POSIX_THREAD_ATTR_STACKSIZE */
You can’t perform that action at this time.
0 commit comments