Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

executors/sbcl: increase memory limit #1194

Merged
merged 1 commit into from
Dec 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dmoj/executors/SBCL.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


# SBCL implements its own heap management, and relies on ASLR being disabled. So, on startup,
# it reads /proc/self/exe do determine if ASLR is disabled. If not, it forks, sets
# it reads /proc/self/exe to determine if ASLR is disabled. If not, it forks, sets
# personality (https://man7.org/linux/man-pages/man2/personality.2.html) to disable ASLR,
# then execve's itself...
# As of https://github.com/DMOJ/judge-server/issues/277 we set personality ourselves to disable ASLR,
Expand All @@ -14,8 +14,8 @@ class Executor(NullStdoutMixin, CompiledExecutor):
command = 'sbcl'
syscalls = ['personality']
test_program = '(write-line (read-line))'
address_grace = 262144
data_grace = 262144
address_grace = 524288
data_grace = 524288
nproc = -1

compile_script = """(compile-file "{code}")"""
Expand Down
Loading