From dcebf56797a406d97ad4d4bac7ad8b81af4bc70d Mon Sep 17 00:00:00 2001 From: cassio Date: Tue, 4 Nov 2014 10:09:07 +0000 Subject: allow large stack size in java exec --- doc/problemexamples/problemtemplate/run/java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/problemexamples/problemtemplate') diff --git a/doc/problemexamples/problemtemplate/run/java b/doc/problemexamples/problemtemplate/run/java index e8e8c7a..6d4d700 100755 --- a/doc/problemexamples/problemtemplate/run/java +++ b/doc/problemexamples/problemtemplate/run/java @@ -15,7 +15,7 @@ # // You should have received a copy of the GNU General Public License # // along with this program. If not, see . # //////////////////////////////////////////////////////////////////////////////// -#Last modified: 21/aug/2014 by cassio@ime.usp.br +#Last modified: 04/nov/2014 by cassio@ime.usp.br # # parameters are: # $1 main_class @@ -145,7 +145,7 @@ if [ ! -x "\$java" ]; then exit 47 fi export CLASSPATH=.:./run.jar:$CLASSPATH -"$sf" -r$nruns -t$time -T$ttime -istdin0 -F256 -u256 -ostdout0 -estderr0 -U$bocau -G$bocag -n0 -C. -f20000 -d20000000 -m20000000 -- "\$java" -Xmx${maxm}K -Xms${maxm}K "$name" +"$sf" -r$nruns -t$time -T$ttime -istdin0 -F256 -u256 -ostdout0 -estderr0 -U$bocau -G$bocag -n0 -C. -f20000 -d20000000 -m20000000 -- "\$java" -Xmx${maxm}K -Xss${maxm}K -Xms${maxm}K "$name" retval=\$? echo \$retval > runit.retcode if [ ! -d /bocajail ]; then @@ -173,7 +173,7 @@ else echo "$java not found or it's not executable" exit 47 fi - "$sf" -r$nruns -t$time -T$ttime -istdin0 -F256 -u256 -U$bocau -G$bocag -ostdout0 -estderr0 -n0 -C. -d20000000 -m20000000 -- "$java" -cp run.jar -Xmx${maxm}K -Xms${maxm}K "$name" + "$sf" -r$nruns -t$time -T$ttime -istdin0 -F256 -u256 -U$bocau -G$bocag -ostdout0 -estderr0 -n0 -C. -d20000000 -m20000000 -- "$java" -cp run.jar -Xmx${maxm}K -Xss${maxm}K -Xms${maxm}K "$name" ret=$? fi if [ $ret -gt 10 ]; then -- cgit v1.2.3