#!/usr/bin/env bash # JEP 536: JFR in-process data redaction. Start a JVM that has secrets in its arguments, system # properties and environment, record it with JFR, and print what ended up in the recording. # ./scripts/jfr-redaction.sh -> docs/output/40-jfr-redaction.txt set -euo pipefail source "$(dirname "$0")/env.sh" B="$ROOT/build/jfr"; rm -rf "$B"; mkdir -p "$B" "$JDK27/bin/javac" --release 26 -d "$B" "$ROOT/jep-tour/src/Idle.java" # record