编译器允许使用的内存由2G修改为256M,避免编译器占用太多内存。

This commit is contained in:
virusdefender 2016-04-30 19:28:15 +08:00
parent 66d1aa69f0
commit 6acb062a86
No known key found for this signature in database
GPG Key ID: 1686FB5677979E61

View File

@ -16,7 +16,7 @@ def compile_(language_item, src_path, exe_path, judge_base_path, compile_spj=Fal
in_file="/dev/null",
out_file=compiler_output_file,
max_cpu_time=2000,
max_memory=2000000000,
max_memory=256 * 1024 * 1024,
args=compile_args,
env=["PATH=" + os.environ["PATH"]],
use_sandbox=False,