RFR: 8350210: CTW: Use stackless exceptions
Aleksey Shipilev
shade at openjdk.org
Tue Feb 18 09:10:44 UTC 2025
Looking at reducing CTW costs in our infra, there are a few simple improvements we can take.
CTW runners compiling 3rd party JARs normally catch lots of stray exceptions when trying to load non-existing classes, e.g. for resolving the static final fields, or preloading the constant pool. Generating stack traces for these take considerable time, and stack traces for those exceptions are not essential to debug CTW runs. So, we can summarily disable them.
This has no effect on `applications/ctw/modules`. Compiling a large 3rd party JAR like `solr-core-7.4.0.jar`, for example, improves from ~15.3s to ~12.5s.
-------------
Commit messages:
- Fix
Changes: https://git.openjdk.org/jdk/pull/23671/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23671&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8350210
Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/23671.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23671/head:pull/23671
PR: https://git.openjdk.org/jdk/pull/23671
More information about the hotspot-compiler-dev
mailing list