RFR: 8350211: CTW: Attempt to preload all classes in constant pool

Vladimir Ivanov vlivanov at openjdk.org
Tue Feb 18 21:46:53 UTC 2025


On Tue, 18 Feb 2025 11:09:40 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> CTW runners do preloading for constant pools ahead of time. I believe this is done to expose more loaded classes to the compilations, so to extend the compilation scope.
> 
> Unfortunately, current code catches the first exception when loading the constant pool and stops preloading. This routinely happens when CTW runner processes a 3rd party JAR, where dependencies might normally be in other JARs.
> 
> I believe we should attempt to resolve all constant pool entries when preloading is requested. This would likely expand the scope of CTW testing.
> 
> Additional testing:
>  - [x] Linux x86_64 server fastdebug, `applications/ctw/modules` still passes

Nice finding, Aleksey. Looks good.

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

Marked as reviewed by vlivanov (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/23673#pullrequestreview-2625102449


More information about the hotspot-compiler-dev mailing list