RFR: 8350210: CTW: Use stackless exceptions
Christian Hagedorn
chagedorn at openjdk.org
Wed Feb 19 11:31:53 UTC 2025
On Tue, 18 Feb 2025 09:05:36 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> 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.
That's a good idea!
-------------
Marked as reviewed by chagedorn (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/23671#pullrequestreview-2626507167
More information about the hotspot-compiler-dev
mailing list