RFR: 8353014: Exclude AOT tooling classes from AOT cache [v5]
Vladimir Ivanov
vlivanov at openjdk.org
Tue Apr 8 21:22:22 UTC 2025
On Tue, 8 Apr 2025 21:11:42 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> When creating the AOT configuration file or the AOT cache file, we load a few "AOT tooling" classes that are not needed in the production run. This PR adds an API for filtering out such classes to reduce footprint.
>>
>> In addition, with the upcoming [JDK-8325147](https://bugs.openjdk.org/browse/JDK-8325147) (Ahead-of-Time Method Profiling), profiles for the tooling classes will be also be excluded. This will prevent the JVM from compiling methods at start-up which aren't going to be used.
>
> Ioi Lam has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains nine commits:
>
> - Merge branch 'master' into 8353014-exclude-tooling-classes-from-aot-cache
> - Thread safety: AOTClassFilter::is_aot_tooling_class() can potentially be called by multiple threads concurrently
> - Merge branch 'master' into 8353014-exclude-tooling-classes-from-aot-cache
> - Added single-thread-only assert for AOTClassFilter
> - Merge branch 'master' into 8353014-exclude-tooling-classes-from-aot-cache
> - Refactored CollectClassesForLinking for simplification
> - Merge branch 'master' into 8353014-exclude-tooling-classes-from-aot-cache
> - Reverted some fixes in systemDictionaryShared.cpp that causes test failures
> - 8353014: Exclude AOT tooling classes from AOT cache
Marked as reviewed by vlivanov (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/24272#pullrequestreview-2751426214
More information about the hotspot-runtime-dev
mailing list