Skip to content

Commit

Permalink
protect against SANY race conditions on the filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
konnov committed Dec 13, 2024
1 parent 975e1ed commit 1c67973
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/universal/bin/apalache-mc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ then
JVM_ARGS="${JVM_ARGS} -Xmx4096m"
fi

# Avoid SANY concurrency issues: https://github.com/tlaplus/tlaplus/issues/688
TD=`mktemp -d "$TMPDIR"/SANYXXXXXXXXXX`
JVM_ARGS="${JVM_ARGS} -Djava.io.tmpdir=$TD"

# Check whether the CLI args contains the debug flag
if [[ "$*" =~ '--debug' ]]
then
Expand Down

0 comments on commit 1c67973

Please sign in to comment.