Companion module for the rewritten post 'Virtual Threads on Spring Boot 4.1: The Benchmarks, Re-Run, and the Pinning Advice That Expired', retitled and re-benchmarked on Boot 4.1.1 / JDK 25.0.4.1 (the original post was written against Boot 3.4 / JDK 21). Covers: I/O-bound and CPU-bound throughput (platform vs virtual threads, including a JIT-warmup benchmarking bug this build caught and fixed), JEP 491 proof that synchronized no longer pins a virtual thread's carrier across a blocking call as of JDK 24 (obsoleting the old avoid-synchronized advice), proof that -Djdk.tracePinnedThreads=full is inert on JDK 25, and JEP 506's finalized ScopedValue API (JDK 25 GA, no --enable-preview, and a different shape than the old preview API). Kept as its own module rather than a new top-level repository, alongside the existing async/ module, which already has a stronger dual-JDK JEP 491 proof that this module's docs cross-link to instead of duplicating.
13 lines
440 B
Bash
Executable File
13 lines
440 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Regenerates every file under docs/output/ from a real run: the JUnit test suite (which
|
|
# writes 00, 01, 02, 03a via the Transcript helper as it asserts) plus the standalone
|
|
# tracePinnedThreads check (03b, which needs its own JVM flag and isn't a JUnit test).
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
|
|
mvn -q -B test
|
|
./scripts/check-trace-pinned-threads-removed.sh > /dev/null
|
|
|
|
echo "Regenerated:"
|
|
ls -1 docs/output/
|