RFR: 8350211: CTW: Attempt to preload all classes in constant pool
Aleksey Shipilev
shade at openjdk.org
Tue Feb 18 11:15:00 UTC 2025
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
-------------
Commit messages:
- Fix
Changes: https://git.openjdk.org/jdk/pull/23673/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23673&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8350211
Stats: 12 lines in 1 file changed: 4 ins; 5 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/23673.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23673/head:pull/23673
PR: https://git.openjdk.org/jdk/pull/23673
More information about the hotspot-compiler-dev
mailing list