[pypy-dev] Stack limit in the jit backends

Richard Plangger planrichi at gmail.com
Thu Jan 28 08:37:44 EST 2016


Hi,

the file rpython/translator/c/src/stack.h defines MAX_STACK_SIZE. PPC
has a bigger limit than e.g. x86. I experienced that on s390x there is
as well a higher consumption of memory for stack frames (they are
variable sized with a pretty high minimum limit (160 bytes) by the ABI).

I have two questions:

1) The OS (i.e. linux) defines a stack limit (ulimit -s), does pypy
overwrite this value with MAX_STACK_SIZE?

2) How would I determine which size is best for s390x? Or how did we
come up with 768kb for x86, and 2.8mb for ppc?

Cheers,
Richard

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20160128/c20dfbb1/attachment.sig>


More information about the pypy-dev mailing list