Message11791

Author jeff.allen
Recipients gsnedders, jeff.allen, zyasoft
Date 2018-03-13.21:04:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1520975061.52.0.467229070634.issue2501@psf.upfronthosting.co.za>
In-reply-to
Content
Although it seems logical to me that this should work (Windows, sorry):
PS bugs> $env:JAVA_STACK="16m"
PS bugs> jython --print
java -Xmx512m 16m -classpath ..\..\..\..\..\Jython\2.7.2a1\jython.jar;. -Dpython.home=..\..\..\..\..\Jython\2.7.2a1 -Dpython.executable=..\..\..\..\..\Jython\2.7.2a1\bin\jython.exe -Dpython.launcher.uname=windows -Dpython.launcher.tty=true org.python.util.jython

In fact, JAVA_STACK has to include the "-Xss" part:
PS bugs> $env:JAVA_STACK="-Xss16m"
PS bugs> jython --print
java -Xmx512m -Xss16m -classpath ..\..\..\..\..\Jython\2.7.2a1\jython.jar;. -Dpython.home=..\..\..\..\..\Jython\2.7.2a1 -Dpython.executable=..\..\..\..\..\Jython\2.7.2a1\bin\jython.exe -Dpython.launcher.uname=windows -Dpython.launcher.tty=true org.python.util.jython

The Python and shell launchers both observe this convention. So on the face of it, this is invalid, or a help/documentation bug.

As an enhancement, it would be possible to check for the -Xss and force it in if missing, I suppose. If that's desirable, we should do the same for JAVA_MEM. Thoughts?
History
Date User Action Args
2018-03-13 21:04:21jeff.allensetmessageid: <1520975061.52.0.467229070634.issue2501@psf.upfronthosting.co.za>
2018-03-13 21:04:21jeff.allensetrecipients: + jeff.allen, zyasoft, gsnedders
2018-03-13 21:04:21jeff.allenlinkissue2501 messages
2018-03-13 21:04:20jeff.allencreate