Movatterモバイル変換


[0]ホーム

URL:


homepage

Message347888

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Authorronaldoussoren
Recipientsmatrixise, ned.deily, ronaldoussoren, steve.dower
Date2019-07-14.08:38:58
SpamBayes Score-1.0
Marked as misclassifiedYes
Message-id<1563093538.21.0.225330077778.issue18049@roundup.psfhosted.org>
In-reply-to
Content
I've done some more testing, and the thread stack size could be smaller than 16MB, but definitely not as small as the value that's currently in thread_pthread.h.I prefer to have a slightly too large value here because IIRC the relation between the recursion limit and C stack usage is a heuristic. BTW. It should be possible to implement PyOS_CheckStack() on macOS. There are (undocumented) APIs in the public header files to get the stack base and size for the current thread. These APIs also work for the main thread:# ---#include <pthread.h>#include <stdio.h>int main(void){        printf("%#lx\n", (long)pthread_get_stacksize_np(pthread_self()));        printf("%p\n", pthread_get_stackaddr_np(pthread_self()));}# ---
History
DateUserActionArgs
2019-07-14 08:38:58ronaldoussorensetrecipients: +ronaldoussoren,ned.deily,steve.dower,matrixise
2019-07-14 08:38:58ronaldoussorensetmessageid: <1563093538.21.0.225330077778.issue18049@roundup.psfhosted.org>
2019-07-14 08:38:58ronaldoussorenlinkissue18049 messages
2019-07-14 08:38:58ronaldoussorencreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp