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

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

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

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

PR Comment: https://git.openjdk.org/jdk/pull/23673#issuecomment-2667905089


More information about the hotspot-compiler-dev mailing list