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

Christian Hagedorn chagedorn at openjdk.org
Wed Feb 19 10:34: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

Looks good to me, too!

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

Marked as reviewed by chagedorn (Reviewer).

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


More information about the hotspot-compiler-dev mailing list