[jdk25u-dev] Integrated: 8368182: AOT cache creation fails with class defined by JNI

Roland Mesde duke at openjdk.org
Wed Dec 10 16:19:23 UTC 2025


On Mon, 8 Dec 2025 17:35:50 GMT, Roland Mesde <duke at openjdk.org> wrote:

> Backporting JDK-8368182: AOT cache creation fails with class defined by JNI.
> 
> This commit fixed the AOT cache to exclude JNI-defined classes by setting their shared_classpath_index to -1 instead of 0, preventing incorrect inclusion in the AOT configuration file. Also updated LambdaFormInvokers::regenerate_holder_classes() to specify a non-null code source, ensuring regenerated holder classes remain included in the cache.
> 
> Ran GHA Sanity Checks (passed), jtreg tier1 tests (passed) and related tests (passed) on linux-x64, linux-aarch64, macos-aarch64 and windows-x64:
> 
> (Passed) - make test-tier1
> (Passed) - make test TEST=test/hotspot/jtreg/runtime/cds/appcds/aotCache
> 
> Results are attached.
> 
> [linux-aarch64-jtreg-tier1.log](https://github.com/user-attachments/files/24042533/linux-aarch64-jtreg-tier1.log)
> [linux-aarch64-specific-test.log](https://github.com/user-attachments/files/24042534/linux-aarch64-specific-test.log)
> [linux-x64-jtreg-tier1.log](https://github.com/user-attachments/files/24042535/linux-x64-jtreg-tier1.log)
> [linux-x64-specific-test.log](https://github.com/user-attachments/files/24042536/linux-x64-specific-test.log)
> [macos-aarch64-jtreg-tier1.log](https://github.com/user-attachments/files/24042537/macos-aarch64-jtreg-tier1.log)
> [macos-aarch64-specific-test.log](https://github.com/user-attachments/files/24042538/macos-aarch64-specific-test.log)
> [windows-x64-jtreg-tier1.log](https://github.com/user-attachments/files/24042539/windows-x64-jtreg-tier1.log)
> [windows-x64-specific-test.log](https://github.com/user-attachments/files/24042540/windows-x64-specific-test.log)

This pull request has now been integrated.

Changeset: 687c6a0b
Author:    Roland Mesde <mesde at amazon.com>
Committer: Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jdk25u-dev/commit/687c6a0b0871f68a017b6a81782f9b28e5d9ddf9
Stats:     179 lines in 4 files changed: 174 ins; 3 del; 2 mod

8368182: AOT cache creation fails with class defined by JNI

Backport-of: 8f87fdce0b17f3edd453054461895330b82e8a71

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

PR: https://git.openjdk.org/jdk25u-dev/pull/71


More information about the jdk-updates-dev mailing list