RFR: 8350210: CTW: Use stackless exceptions

Aleksey Shipilev shade at openjdk.org
Wed Feb 19 08:33:54 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.

Need another Reviewer here; maybe @iwanowww, @chhagedorn, @TobiHartmann?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/23671#issuecomment-2667904768


More information about the hotspot-compiler-dev mailing list