编译器允许使用的内存由2G修改为256M,避免编译器占用太多内存。
This commit is contained in:
@@ -16,7 +16,7 @@ def compile_(language_item, src_path, exe_path, judge_base_path, compile_spj=Fal
|
|||||||
in_file="/dev/null",
|
in_file="/dev/null",
|
||||||
out_file=compiler_output_file,
|
out_file=compiler_output_file,
|
||||||
max_cpu_time=2000,
|
max_cpu_time=2000,
|
||||||
max_memory=2000000000,
|
max_memory=256 * 1024 * 1024,
|
||||||
args=compile_args,
|
args=compile_args,
|
||||||
env=["PATH=" + os.environ["PATH"]],
|
env=["PATH=" + os.environ["PATH"]],
|
||||||
use_sandbox=False,
|
use_sandbox=False,
|
||||||
|
|||||||
Reference in New Issue
Block a user