[jdk25u-dev] RFR: 8368182: AOT cache creation fails with class defined by JNI
Roland Mesde
duke at openjdk.org
Mon Dec 8 22:41:31 UTC 2025
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)
-------------
Commit messages:
- Backport 8f87fdce0b17f3edd453054461895330b82e8a71
Changes: https://git.openjdk.org/jdk25u-dev/pull/71/files
Webrev: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=71&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8368182
Stats: 179 lines in 4 files changed: 174 ins; 3 del; 2 mod
Patch: https://git.openjdk.org/jdk25u-dev/pull/71.diff
Fetch: git fetch https://git.openjdk.org/jdk25u-dev.git pull/71/head:pull/71
PR: https://git.openjdk.org/jdk25u-dev/pull/71
More information about the jdk-updates-dev
mailing list