Author: Armin Rigo <[email protected]>
Branch: shadowstack-issue2722
Changeset: r96577:d92c072bcab5
Date: 2019-05-08 15:22 +0200
http://bitbucket.org/pypy/pypy/changeset/d92c072bcab5/

Log:    Seems to work as expected, writing down a comment here after I
        debugged a multi-threaded problem that doesn't exist

diff --git a/pypy/module/sys/vm.py b/pypy/module/sys/vm.py
--- a/pypy/module/sys/vm.py
+++ b/pypy/module/sys/vm.py
@@ -49,6 +49,11 @@
 reserves 768KB of stack space, which should suffice (on Linux,
 depending on the compiler settings) for ~1400 calls.  Setting the
 value to N reserves N/1000 times 768KB of stack space.
+
+Note that there are other factors that also limit the stack size.
+The operating system typically sets a maximum which can be changed
+manually (e.g. with "ulimit" on Linux) for the main thread.  For other
+threads you can configure the limit by calling "threading.stack_size()".
 """
     from rpython.rlib.rstack import _stack_set_length_fraction
     from rpython.rlib.rgc import increase_root_stack_depth
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to