#!/usr/bin/env bash # Where the JDKs live. Override on the command line, e.g. JDK_CRAC=/opt/zulu-crac ./scripts/run-all.sh export JDK_PLAIN="${JDK_PLAIN:-/tmp/tools/tem/jdk-25.0.5.1+2}" # Temurin 25.0.5.1 (plain JVM, AOT cache) export JDK_CRAC="${JDK_CRAC:-/tmp/tools/zulu/zulu25.38.203-ca-crac-jdk25.0.5.1.1-linux_x64}" # Azul Zulu 25 with CRaC export JDK_GRAAL="${JDK_GRAAL:-/tmp/tools/graal/graalvm-jdk-25.0.4+7.1}" # Oracle GraalVM 25.0.4 (native-image) ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"; export ROOT export OUT="$ROOT/output"; mkdir -p "$OUT" export WORK="${WORK:-/tmp/crac-work}"; mkdir -p "$WORK" # checkpoints, caches, logs: not committed export PORT="${PORT:-18771}" # The JVM prints "Picked up JAVA_TOOL_OPTIONS" on every launch in some sandboxes; it is noise in a transcript. # (Maven itself needs the variable in such a sandbox, so only the run scripts clear it, never build.sh.) run_env() { env -u JAVA_TOOL_OPTIONS -u _JAVA_OPTIONS "$@"; } export TOOL="python3 $ROOT/scripts/crac_tool.py"; export JDK_PLAIN JDK_CRAC WORK PORT