Skip to content

Commit 43a2471

Browse files
committed
Set memory limit on javac
1 parent 7207f76 commit 43a2471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worker/compiler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def compile(self, bot_dir, globs, errors, timelimit):
224224
"Groovy" : [["groovyc"],
225225
["jar", "cfe", BOT + ".jar", BOT]],
226226
"Haskell" : [["ghc", "--make", BOT + ".hs", "-O", "-v0"]],
227-
"Java" : [["javac"],
227+
"Java" : [["javac", "-J-Xmx%sm" % (MEMORY_LIMIT)],
228228
["jar", "cfe", BOT + ".jar", BOT]],
229229
"Lisp" : [['sbcl', '--dynamic-space-size', str(MEMORY_LIMIT), '--script', BOT + '.lisp']],
230230
"OCaml" : [["ocamlbuild", BOT + ".native"]],

0 commit comments

Comments
 (0)