On Tue, 19 Jan 2021 15:54:39 +0000
Mark Shannon <m...@hotpy.org> wrote:
> On 19/01/2021 3:40 pm, Antoine Pitrou wrote:
> > On Tue, 19 Jan 2021 13:31:45 +0000
> > Mark Shannon <m...@hotpy.org> wrote:  
> >> Hi everyone,
> >>
> >> It's time for yet another PEP :)
> >>
> >> Fortunately, this one is a small one that doesn't change much.
> >> It's aim is to make the VM more robust.  
> > 
> > On the principle, no objection.
> > 
> > In practice, can you show how an implementation of Py_CheckStackDepth()
> > would look like?  
> 
> It would depend on the platform, but a portable-ish implementation is here:
> 
> https://github.com/markshannon/cpython/blob/pep-overflow-implementation/Include/internal/pycore_ceval.h#L71

This doesn't tell me how `stack_limit_pointer` is computed or estimated
:-)


_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/5HELIHBQATVIDWT53MJZTPFUEG5CKSOQ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to