Repository navigation
Det Sweep: harness javac launches run C1-only, one GC thread (Part of #5882) - #5920
Merged
Merged
Conversation
…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]>
Owner
Author
|
No description provided. |
Owner
Author
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
--reuseoverlay, 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 4the C2 threads compete with the other cases' JVMs.Measured (cbsa-updcust's generated project, 213 sources, 97 jars, Lombok):
java_javacwas 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. Localjava_javacdropped 16.3->12.8 s and 25.9->21.5 s on 12 uncontended cores; the CI gain should show in thedetjob'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