[New-bugs-announce] [issue30866] Add _testcapi.stack_pointer() to measure the C stack consumption

STINNER Victor report at bugs.python.org
Thu Jul 6 06:51:19 EDT 2017


New submission from STINNER Victor:

In issues bpo-28870, bpo-29227, bpo-29233 and bpo-29234, I worked on reducing the C stack consumption. I now would to add the _testcapi.stack_pointer() that I used to be able to easily measure the stack consumption.

Try for example attached stack_overflow-3.py to measure the maximum number of C calls before a C stack overflow. The script also computes the average stack usage per C call for a specific kind of C call.

----------
files: stack_overflow-3.py
messages: 297822
nosy: haypo, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Add _testcapi.stack_pointer() to measure the C stack consumption
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7
Added file: http://bugs.python.org/file46992/stack_overflow-3.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30866>
_______________________________________


More information about the New-bugs-announce mailing list