This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author peadar
Recipients bkabrda, markmcclain, opoplawski, peadar, vstinner
Date 2019-05-28.12:42:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAO1X7jtUBbrqrAAXQcKNsSZfR0d43kDbZkUOutm_y6+4tLLQJQ@mail.gmail.com>
In-reply-to <1559045294.24.0.371060681554.issue21131@roundup.psfhosted.org>
Content
Ok - let me submit a pull request with your suggestions

On Tue, 28 May 2019 at 13:08, STINNER Victor <report@bugs.python.org> wrote:

>
> STINNER Victor <vstinner@redhat.com> added the comment:
>
> +    pthread_attr_t attrs;
> +    pthread_attr_init(&attrs);
> +    (void)pthread_attr_getstacksize(&attrs, &stack.ss_size);
>
> PyThread_start_new_thread() of thread_pthread.h already contains logic to
> get a "good" stack size. I would prefer to reuse this code.
>
> See also _pythread_nt_set_stacksize() of thread_nt.h.
>
> Maybe we need a private function to get the default stack size?
>
> See also PyThread_get_stacksize() and _thread.stack_size().
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue21131>
> _______________________________________
>
History
Date User Action Args
2019-05-28 12:42:53peadarsetrecipients: + peadar, vstinner, bkabrda, opoplawski, markmcclain
2019-05-28 12:42:53peadarlinkissue21131 messages
2019-05-28 12:42:52peadarcreate