Skip to content

Det Sweep: harness javac launches run C1-only, one GC thread (Part of #5882) - #5920

Merged
squid-protocol merged 1 commit into
mainfrom
perf/5882-det-javac-server
Oct 21, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
perf/5882-det-javac-server

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5882 (CI speed, make jobs faster from the inside).

What it does: every javac the equivalence harness launches (the per-case whole-project build, the --reuse overlay, the EquivalenceMain runner, and mutation.py's per-mutant compile) now runs its JVM with -XX:TieredStopAtLevel=1 -XX:+UseSerialGC. A compile is too short for the C2 JIT to pay back, and on a 4-vCPU runner with --jobs 4 the C2 threads compete with the other cases' JVMs.

Measured (cbsa-updcust's generated project, 213 sources, 97 jars, Lombok):

  • one compile: 13.9 CPU-s -> 4.4 CPU-s, same wall time (~3.4 s)
  • four at once pinned to 4 cores (a det shard's shape): 13.7-17.4 s -> 6.0-6.5 s (~2.3x)
  • class files byte-identical (305 classes, filecmp)

java_javac was 15-21% of Det Sweep case-seconds in run 39658216307.

Why not javac_server (the handoff's plan): a warm server compile took the launcher's 3.6 s. The generated sources use Lombok, whose processor reloads in its own class loader on every compile, so a warm JVM saves nothing.

Equivalence A/B (local, origin/main vs this branch, ab_compare.py): 8/8 cases SAME (verdicts, outputs, coverage, every task's COBOL files): Db2 genapp-lgacdb01, cbsa-creacc-generated, cbsa-bnk1uac, genapp-lgipdb01, cbsa-delcus-generated; non-Db2 carddemo-readacct, cbsa-updcust, asynccc-getname. Local java_javac dropped 16.3->12.8 s and 25.9->21.5 s on 12 uncontended cores; the CI gain should show in the det job's Shard timings.

Tests: test_equivalence_javac_build, test_mutation_bytes, test_java_subprocess_utf8, test_mutation_tooling, test_mutation_one_jvm_scope_4047, test_javac_server: 112 passed. Ruff: no new findings.

🤖 Generated with Claude Code

…art of #5882)

A whole generated project compile (~210 sources, Lombok) took 13.9 CPU-s with the
default tiered JIT and 4.4 CPU-s with -XX:TieredStopAtLevel=1, at the same wall time
alone and ~2.3x faster four at once on four cores (a det shard's --jobs 4). Same
compiler, class files byte-identical (305 classes). Applies to the project build,
the --reuse overlay, the EquivalenceMain runner and mutation.py's per-mutant compile.

A warm javac_server JVM (the handoff's plan) did not help: a served compile took the
launcher's 3.6 s, as Lombok's processor reloads every compile.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 21, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 22:04
@squid-protocol
squid-protocol merged commit 3fe01e0 into main Oct 21, 2026
45 checks passed
@squid-protocol
squid-protocol deleted the perf/5882-det-javac-server branch October 21, 2026 22:11
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant