mirror of
https://github.com/MeiK2333/river.git
synced 2025-09-26 22:49:11 +08:00
为自带虚拟机的语言修改内存限制
This commit is contained in:
parent
682b4b4b27
commit
b52f545fec
@ -40,7 +40,7 @@ languages:
|
||||
version: v4.1.3 (Node.js v14.15.4)
|
||||
|
||||
Go:
|
||||
compile_cmd: /usr/bin/go build -o a.out main.go
|
||||
compile_cmd: /usr/bin/go build -o a.out -p 1 main.go
|
||||
code_file: main.go
|
||||
run_cmd: ./a.out
|
||||
version: go version go1.15.6 linux/amd64
|
||||
|
@ -115,7 +115,11 @@ pub async fn judge(
|
||||
path_to_string(&path.join(STDOUT_FILENAME))?,
|
||||
path_to_string(&path.join(STDERR_FILENAME))?,
|
||||
time_limit,
|
||||
if language == "Java" {
|
||||
if language == "Java"
|
||||
|| language == "Go"
|
||||
|| language == "JavaScript"
|
||||
|| language == "TypeScript"
|
||||
{
|
||||
1024 * 1024
|
||||
} else {
|
||||
memory_limit
|
||||
|
Loading…
Reference in New Issue
Block a user