From asmehra at openjdk.org Fri Jul 4 20:35:46 2025 From: asmehra at openjdk.org (Ashutosh Mehra) Date: Fri, 4 Jul 2025 20:35:46 GMT Subject: RFR: Store cpu features in AOTCodeCache header Message-ID: This is the initial version of storing cpu features in the AOTCodeCache to verify runtime env has the same cpu capabilities as the assembly env. It covers both x86 and aarch64. AOTCodeCache header is updated to store the cpu features in arch-dependent form (although its same for currently supported architectures - x86 and aarch64). It also fixes a bug - the `polling_page_vectors_safepoint_handler_blob` can be null if AVX is not present on a system. This causes crash as this blob's entry point is stored in the address table. I came across this when I did the assembly run with -XX:UseAVX=0 option. ------------- Commit messages: - Store cpu features in AOTCodeCache header Changes: https://git.openjdk.org/leyden/pull/84/files Webrev: https://webrevs.openjdk.org/?repo=leyden&pr=84&range=00 Stats: 330 lines in 8 files changed: 227 ins; 1 del; 102 mod Patch: https://git.openjdk.org/leyden/pull/84.diff Fetch: git fetch https://git.openjdk.org/leyden.git pull/84/head:pull/84 PR: https://git.openjdk.org/leyden/pull/84 From asmehra at openjdk.org Sat Jul 5 04:01:53 2025 From: asmehra at openjdk.org (Ashutosh Mehra) Date: Sat, 5 Jul 2025 04:01:53 GMT Subject: RFR: Store cpu features in AOTCodeCache header In-Reply-To: References: Message-ID: On Fri, 4 Jul 2025 20:30:45 GMT, Ashutosh Mehra wrote: > This is the initial version of storing cpu features in the AOTCodeCache to verify runtime env has the same cpu capabilities as the assembly env. It covers both x86 and aarch64. > AOTCodeCache header is updated to store the cpu features in arch-dependent form (although its same for currently supported architectures - x86 and aarch64). > > It also fixes a bug - the `polling_page_vectors_safepoint_handler_blob` can be null if AVX is not present on a system. This causes crash as this blob's entry point is stored in the address table. > I came across this when I did the assembly run with -XX:UseAVX=0 option. @vnkozlov @adinn please take a look ------------- PR Comment: https://git.openjdk.org/leyden/pull/84#issuecomment-3037866186 From mr at openjdk.org Mon Jul 7 13:06:39 2025 From: mr at openjdk.org (Mark Reinhold) Date: Mon, 7 Jul 2025 13:06:39 GMT Subject: git: openjdk/leyden-docs: master: Add link to Dan =?UTF-8?B?SGVpZGluZ2HigJlz?= JavaOne 2025 presentation Message-ID: Changeset: f9cec367 Branch: master Author: Mark Reinhold Date: 2025-07-07 09:03:23 +0000 URL: https://git.openjdk.org/leyden-docs/commit/f9cec3679fa175619b453f6ecf63ec274c0f35ac Add link to Dan Heidinga?s JavaOne 2025 presentation ! site/_index.md From jkratochvil at openjdk.org Mon Jul 7 13:25:57 2025 From: jkratochvil at openjdk.org (Jan Kratochvil) Date: Mon, 7 Jul 2025 13:25:57 GMT Subject: RFR: Store cpu features in AOTCodeCache header In-Reply-To: References: Message-ID: On Fri, 4 Jul 2025 20:30:45 GMT, Ashutosh Mehra wrote: > This is the initial version of storing cpu features in the AOTCodeCache to verify runtime env has the same cpu capabilities as the assembly env. It covers both x86 and aarch64. > AOTCodeCache header is updated to store the cpu features in arch-dependent form (although its same for currently supported architectures - x86 and aarch64). > > It also fixes a bug - the `polling_page_vectors_safepoint_handler_blob` can be null if AVX is not present on a system. This causes crash as this blob's entry point is stored in the address table. > I came across this when I did the assembly run with -XX:UseAVX=0 option. CRaC project has [a similar feature](https://docs.azul.com/core/crac/cpu-features). In comparison here I miss here some command line option to disable this comparison (`-XX:CPUFeatures=ignore`) as one may find some missing CPU feature not really important to run the restored code. It is intended more for debugging/development. src/hotspot/cpu/aarch64/vm_version_aarch64.cpp line 797: > 795: bool VM_Version::supports_features(void* features_buffer) { > 796: uint64_t features_to_test = *(uint64_t*)features_buffer; > 797: return (_features & features_to_test) == features_to_test; Here you test whether the new machine has at least the same CPU features as the old (stored) machine. From our experience from [CRaC](https://docs.azul.com/core/crac/cpu-features) one should rather compare the features are equal. As some features presence affect ABI of the JIT-compiled code and if the new machine has such CPU features the newly JITted code will be incompatible with ABI of the stored code cache. ------------- PR Comment: https://git.openjdk.org/leyden/pull/84#issuecomment-3045116578 PR Review Comment: https://git.openjdk.org/leyden/pull/84#discussion_r2190092045 From adinn at openjdk.org Mon Jul 7 13:48:04 2025 From: adinn at openjdk.org (Andrew Dinn) Date: Mon, 7 Jul 2025 13:48:04 GMT Subject: RFR: Store cpu features in AOTCodeCache header In-Reply-To: References: Message-ID: <91b0kruBCtLgf7lYX_RNMfsi1HltXtUEipKM206Te3k=.2c1e13a6-8639-4204-9a00-1de7cb936c0a@github.com> On Mon, 7 Jul 2025 13:21:27 GMT, Jan Kratochvil wrote: >> This is the initial version of storing cpu features in the AOTCodeCache to verify runtime env has the same cpu capabilities as the assembly env. It covers both x86 and aarch64. >> AOTCodeCache header is updated to store the cpu features in arch-dependent form (although its same for currently supported architectures - x86 and aarch64). >> >> It also fixes a bug - the `polling_page_vectors_safepoint_handler_blob` can be null if AVX is not present on a system. This causes crash as this blob's entry point is stored in the address table. >> I came across this when I did the assembly run with -XX:UseAVX=0 option. > > src/hotspot/cpu/aarch64/vm_version_aarch64.cpp line 797: > >> 795: bool VM_Version::supports_features(void* features_buffer) { >> 796: uint64_t features_to_test = *(uint64_t*)features_buffer; >> 797: return (_features & features_to_test) == features_to_test; > > Here you test whether the new machine has at least the same CPU features as the old (stored) machine. From our experience from [CRaC](https://docs.azul.com/core/crac/cpu-features) one should rather compare the features are equal. As some features presence affect ABI of the JIT-compiled code and if the new machine has such CPU features the newly JITted code will be incompatible with ABI of the stored code cache. Could you provide more detail about your statement "some features presence affect ABI of the JIT-compiled code"? ------------- PR Review Comment: https://git.openjdk.org/leyden/pull/84#discussion_r2190167120 From jkratochvil at openjdk.org Mon Jul 7 16:21:07 2025 From: jkratochvil at openjdk.org (Jan Kratochvil) Date: Mon, 7 Jul 2025 16:21:07 GMT Subject: RFR: Store cpu features in AOTCodeCache header In-Reply-To: <91b0kruBCtLgf7lYX_RNMfsi1HltXtUEipKM206Te3k=.2c1e13a6-8639-4204-9a00-1de7cb936c0a@github.com> References: <91b0kruBCtLgf7lYX_RNMfsi1HltXtUEipKM206Te3k=.2c1e13a6-8639-4204-9a00-1de7cb936c0a@github.com> Message-ID: On Mon, 7 Jul 2025 13:45:27 GMT, Andrew Dinn wrote: >> src/hotspot/cpu/aarch64/vm_version_aarch64.cpp line 797: >> >>> 795: bool VM_Version::supports_features(void* features_buffer) { >>> 796: uint64_t features_to_test = *(uint64_t*)features_buffer; >>> 797: return (_features & features_to_test) == features_to_test; >> >> Here you test whether the new machine has at least the same CPU features as the old (stored) machine. From our experience from [CRaC](https://docs.azul.com/core/crac/cpu-features) one should rather compare the features are equal. As some features presence affect ABI of the JIT-compiled code and if the new machine has such CPU features the newly JITted code will be incompatible with ABI of the stored code cache. > > Could you provide more detail about your statement "some features presence affect ABI of the JIT-compiled code"? Simply said if you store the compiled Java code on old CPU (almost no features) and then run it on new CPU (full features) then it will crash. It crashes when a newly compiled code calls the restored code or vice versa. If you disagree I can try to reproduce with Leyden, it was happening with CRaC. ------------- PR Review Comment: https://git.openjdk.org/leyden/pull/84#discussion_r2190526357 From asmehra at openjdk.org Mon Jul 7 16:51:04 2025 From: asmehra at openjdk.org (Ashutosh Mehra) Date: Mon, 7 Jul 2025 16:51:04 GMT Subject: RFR: Store cpu features in AOTCodeCache header In-Reply-To: References: <91b0kruBCtLgf7lYX_RNMfsi1HltXtUEipKM206Te3k=.2c1e13a6-8639-4204-9a00-1de7cb936c0a@github.com> Message-ID: On Mon, 7 Jul 2025 16:18:05 GMT, Jan Kratochvil wrote: >> Could you provide more detail about your statement "some features presence affect ABI of the JIT-compiled code"? > > Simply said if you store the compiled Java code on old CPU (almost no features) and then run it on new CPU (full features) then it will crash. It crashes when a newly compiled code calls the restored code or vice versa. If you disagree I can try to reproduce with Leyden, it was happening with CRaC. @jankratochvil thanks for sharing your experience. It would be great if you can provide a reproducer. ------------- PR Review Comment: https://git.openjdk.org/leyden/pull/84#discussion_r2190621128 From duke at openjdk.org Mon Jul 7 17:03:33 2025 From: duke at openjdk.org (duke) Date: Mon, 7 Jul 2025 17:03:33 GMT Subject: git: openjdk/leyden: hermetic-java-runtime: 83 new changesets Message-ID: <6d0a545e-a12a-4b69-b132-7067f3448c2a@openjdk.org> Changeset: 1dda79cf Branch: hermetic-java-runtime Author: Calvin Cheung Date: 2025-06-30 17:51:20 +0000 URL: https://git.openjdk.org/leyden/commit/1dda79cfab597782e0a7bb63af6dcc30aeff62d1 8360743: Enables regeneration of JLI holder classes for CDS static dump Reviewed-by: iklam, liach ! src/hotspot/share/cds/aotArtifactFinder.cpp ! src/hotspot/share/cds/aotClassInitializer.cpp ! src/hotspot/share/cds/archiveBuilder.cpp ! src/hotspot/share/cds/archiveHeapWriter.cpp ! src/hotspot/share/cds/cdsConfig.cpp ! src/hotspot/share/cds/heapShared.cpp ! src/hotspot/share/cds/lambdaFormInvokers.cpp ! src/hotspot/share/cds/regeneratedClasses.cpp ! src/hotspot/share/cds/regeneratedClasses.hpp ! src/hotspot/share/classfile/systemDictionaryShared.cpp ! src/hotspot/share/oops/instanceKlass.hpp ! test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/NestHostOldInf.java Changeset: 9d518b32 Branch: hermetic-java-runtime Author: Calvin Cheung Date: 2025-06-30 17:52:28 +0000 URL: https://git.openjdk.org/leyden/commit/9d518b3213af7c60cb604138a2c4022181bb2daa 8310831: Some methods are missing from CDS regenerated JLI holder class Reviewed-by: iklam, liach ! src/hotspot/share/cds/regeneratedClasses.cpp Changeset: 61a590e9 Branch: hermetic-java-runtime Author: Xueming Shen Date: 2025-07-01 00:58:43 +0000 URL: https://git.openjdk.org/leyden/commit/61a590e9bea64ddfd465a5e6f224bc2979d841e9 8354490: Pattern.CANON_EQ causes a pattern to not match a string with a UNICODE variation Reviewed-by: rriggs, naoto ! src/java.base/share/classes/java/util/regex/Pattern.java ! test/jdk/java/util/regex/RegExTest.java Changeset: d1052c70 Branch: hermetic-java-runtime Author: Anass Baya Committer: Abhishek Kumar Date: 2025-07-01 04:40:43 +0000 URL: https://git.openjdk.org/leyden/commit/d1052c70cbddb025e7f5b71bd61176e63277bba0 8355478: DoubleActionESC.java fails intermittently Reviewed-by: aivanov, abhiscxk ! test/jdk/ProblemList.txt ! test/jdk/java/awt/FileDialog/DoubleActionESC.java Changeset: 0572b6ec Branch: hermetic-java-runtime Author: Martin Doerr Date: 2025-07-01 06:09:50 +0000 URL: https://git.openjdk.org/leyden/commit/0572b6ece7a77d13d23ac0c6d72d4fe5d5f0d944 8360887: (fs) Files.getFileAttributeView returns unusable FileAttributeView if UserDefinedFileAttributeView unavailable (aix) Co-authored-by: Joachim Kern Reviewed-by: bpb, mbaesken ! src/java.base/aix/classes/sun/nio/fs/AixFileSystemProvider.java ! test/jdk/java/nio/file/FileStore/Basic.java Changeset: b32ccf2c Branch: hermetic-java-runtime Author: Manuel H?ssig Date: 2025-07-01 06:47:48 +0000 URL: https://git.openjdk.org/leyden/commit/b32ccf2cb23e0180187f4238140583a923fc27c4 8361092: Remove trailing spaces in x86 ad files Reviewed-by: kvn, sviswanathan ! src/hotspot/cpu/x86/x86_64.ad Changeset: cd6caedd Branch: hermetic-java-runtime Author: Aleksey Shipilev Date: 2025-07-01 07:58:12 +0000 URL: https://git.openjdk.org/leyden/commit/cd6caedd0a3c9ebd4c8c57e64f62b60161c5cd7c 8360783: CTW: Skip deoptimization between tiers Reviewed-by: thartmann, mhaessig, dfenacci ! test/hotspot/jtreg/testlibrary/ctw/src/sun/hotspot/tools/ctw/Compiler.java Changeset: 54c95cf2 Branch: hermetic-java-runtime Author: Matthias Baesken Date: 2025-07-01 09:19:35 +0000 URL: https://git.openjdk.org/leyden/commit/54c95cf2261f871c47b3700ede31390c8f5e77dd 8361043: [ubsan] os::print_hex_dump runtime error: applying non-zero offset 8 to null pointer Reviewed-by: mdoerr, lucy ! src/hotspot/share/runtime/os.cpp Changeset: aeca49e4 Branch: hermetic-java-runtime Author: Matthias Baesken Date: 2025-07-01 09:56:42 +0000 URL: https://git.openjdk.org/leyden/commit/aeca49e43fab951c2031895fee32703fb4a19524 8360791: [ubsan] Adjust signal handling Reviewed-by: ihse, lucy ! make/data/ubsan/ubsan_default_options.c Changeset: fc739fee Branch: hermetic-java-runtime Author: Albert Mingkun Yang Date: 2025-07-01 10:13:17 +0000 URL: https://git.openjdk.org/leyden/commit/fc739fee5360ec052c2b51b3e30ce1c34df71714 8360206: Refactor ReferenceProcessor::balance_queues Reviewed-by: sangheki, kbarrett, tschatzl ! src/hotspot/share/gc/shared/referenceProcessor.cpp Changeset: eec11539 Branch: hermetic-java-runtime Author: Albert Mingkun Yang Date: 2025-07-01 10:14:25 +0000 URL: https://git.openjdk.org/leyden/commit/eec1153993a2a6e65b05e6d9d7416ee0cb634503 8361056: Parallel: Use correct is_par argument in ScavengeRootsTask Reviewed-by: tschatzl ! src/hotspot/share/gc/parallel/psScavenge.cpp Changeset: e85c7d09 Branch: hermetic-java-runtime Author: Thomas Schatzl Date: 2025-07-01 10:40:33 +0000 URL: https://git.openjdk.org/leyden/commit/e85c7d09df67728ddcf852a96e5b2baa57c502f1 8360790: G1: Improve HRRSStatsIter name Reviewed-by: kbarrett, ayang ! src/hotspot/share/gc/g1/g1RemSetSummary.cpp Changeset: 7583a7b8 Branch: hermetic-java-runtime Author: Jaikiran Pai Date: 2025-07-01 11:39:20 +0000 URL: https://git.openjdk.org/leyden/commit/7583a7b857da053c5e3770b680ab3494f1a6b66a 8359337: XML/JAXP tests that make network connections should ensure that no proxy is selected Reviewed-by: lancea, iris, joehw ! test/jaxp/javax/xml/jaxp/unittest/common/catalog/DOMTest.java ! test/jaxp/javax/xml/jaxp/unittest/common/catalog/SAXTest.java ! test/jaxp/javax/xml/jaxp/unittest/common/dtd/DOMTest.java ! test/jaxp/javax/xml/jaxp/unittest/common/dtd/SAXTest.java ! test/jaxp/javax/xml/jaxp/unittest/dom/DOMFeatureTest.java Changeset: e1382973 Branch: hermetic-java-runtime Author: Aleksey Shipilev Date: 2025-07-01 14:30:20 +0000 URL: https://git.openjdk.org/leyden/commit/e138297323de3f6990c4c536b1cefd209ce3a69c 8359436: AOTCompileEagerly should not be diagnostic Reviewed-by: kvn, syan, dholmes ! src/hotspot/share/cds/cds_globals.hpp + test/hotspot/jtreg/runtime/cds/appcds/aotCache/AOTCompileEagerly.java Changeset: e1681c48 Branch: hermetic-java-runtime Author: Jaikiran Pai Date: 2025-07-01 15:32:26 +0000 URL: https://git.openjdk.org/leyden/commit/e1681c48287bcce6c8f617d9c0c25354dd62870a 8359477: com/sun/net/httpserver/Test12.java appears to have a temp file race Reviewed-by: dfuchs, vyazici ! test/jdk/com/sun/net/httpserver/FileServerHandler.java ! test/jdk/com/sun/net/httpserver/Test12.java Changeset: 38f59f84 Branch: hermetic-java-runtime Author: Mohamed Issa Committer: Sandhya Viswanathan Date: 2025-07-01 15:34:37 +0000 URL: https://git.openjdk.org/leyden/commit/38f59f84c98dfd974eec0c05541b2138b149def7 8358179: Performance regression in Math.cbrt Reviewed-by: sviswanathan, sparasa, epeter ! src/hotspot/cpu/x86/stubGenerator_x86_64_cbrt.cpp Changeset: e7a45003 Branch: hermetic-java-runtime Author: Coleen Phillimore Date: 2025-07-01 17:14:36 +0000 URL: https://git.openjdk.org/leyden/commit/e7a450038a47a76d2e616ebce2a7fa8a51e36ea4 8359707: Add classfile modification code to RedefineClassHelper Reviewed-by: lmesnik, dholmes, sspitsyn ! test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/ClassVersionAfterRedefine.java ! test/lib/RedefineClassHelper.java Changeset: 282ee40a Branch: hermetic-java-runtime Author: Leonid Mesnik Date: 2025-07-01 17:22:33 +0000 URL: https://git.openjdk.org/leyden/commit/282ee40a56af46521b94fe6e4c90e78b8f513b29 8359366: RunThese30M.java EXCEPTION_ACCESS_VIOLATION in JvmtiBreakpoints::clearall_in_class_at_safepoint Reviewed-by: coleenp, dholmes, sspitsyn ! src/hotspot/share/prims/jvmtiImpl.cpp Changeset: 13a39278 Branch: hermetic-java-runtime Author: Kevin Walls Date: 2025-07-01 19:07:49 +0000 URL: https://git.openjdk.org/leyden/commit/13a3927855da61fe27f3b43e5e4755d0c5ac5a16 8359870: JVM crashes in AccessInternal::PostRuntimeDispatch Reviewed-by: amenkov, dholmes, sspitsyn ! src/hotspot/share/prims/jvm.cpp ! src/hotspot/share/services/threadService.cpp ! src/java.base/share/classes/jdk/internal/vm/ThreadDumper.java ! src/java.base/share/classes/jdk/internal/vm/ThreadSnapshot.java ! test/jdk/com/sun/management/HotSpotDiagnosticMXBean/DumpThreadsWithEliminatedLock.java Changeset: e9a62d79 Branch: hermetic-java-runtime Author: Daniel Jeli?ski Date: 2025-07-01 19:19:25 +0000 URL: https://git.openjdk.org/leyden/commit/e9a62d79cdc43e5eb141f1d47624d0f6fe05989d 8361125: Fix typo in onTradAbsence Reviewed-by: hchao, mullan, shade ! src/java.base/share/classes/sun/security/ssl/KeyShareExtension.java ! src/java.base/share/classes/sun/security/ssl/PreSharedKeyExtension.java ! src/java.base/share/classes/sun/security/ssl/SSLExtension.java ! src/java.base/share/classes/sun/security/ssl/SupportedGroupsExtension.java Changeset: 534d2b33 Branch: hermetic-java-runtime Author: Calvin Cheung Date: 2025-07-01 19:52:06 +0000 URL: https://git.openjdk.org/leyden/commit/534d2b33dc23d0171fdce3cb89d679d5088b4667 8357064: cds/appcds/ArchiveRelocationTest.java failed with missing expected output Reviewed-by: shade, iklam ! test/hotspot/jtreg/runtime/cds/appcds/ArchiveRelocationTest.java Changeset: 7d7e60c8 Branch: hermetic-java-runtime Author: Ioi Lam Date: 2025-07-01 20:22:13 +0000 URL: https://git.openjdk.org/leyden/commit/7d7e60c8aebc4b4c1e7121be702393e5bc46e9ce 8360164: AOT cache creation crashes in ~ThreadTotalCPUTimeClosure() Reviewed-by: ccheung, kvn, dholmes ! src/hotspot/share/cds/metaspaceShared.cpp Changeset: a910b20b Branch: hermetic-java-runtime Author: Kim Barrett Date: 2025-07-02 00:17:19 +0000 URL: https://git.openjdk.org/leyden/commit/a910b20b51157d8f36418bd60b328193ebfb502e 8346914: UB issue in scalbnA Reviewed-by: aph, tschatzl ! src/hotspot/cpu/aarch64/macroAssembler_aarch64_trig.cpp ! src/hotspot/share/runtime/sharedRuntimeMath.hpp ! src/hotspot/share/runtime/sharedRuntimeTrans.cpp ! src/hotspot/share/runtime/sharedRuntimeTrig.cpp Changeset: 1703915d Branch: hermetic-java-runtime Author: Kim Barrett Date: 2025-07-02 00:25:26 +0000 URL: https://git.openjdk.org/leyden/commit/1703915d3fe3608ca558671814f78d9dcf5886e6 8361085: MemoryReserver log_on_large_pages_failure has incorrect format usage Reviewed-by: stefank, dholmes ! src/hotspot/share/memory/memoryReserver.cpp Changeset: c6448dc3 Branch: hermetic-java-runtime Author: Kim Barrett Date: 2025-07-02 00:28:24 +0000 URL: https://git.openjdk.org/leyden/commit/c6448dc3afb1da9d93bb94804aa1971a650b91b7 8361086: JVMCIGlobals::check_jvmci_flags_are_consistent has incorrect format string Reviewed-by: kvn, mhaessig, yzheng ! src/hotspot/share/jvmci/jvmci_globals.cpp Changeset: 2bff8e0a Branch: hermetic-java-runtime Author: Prasanta Sadhukhan Date: 2025-07-02 03:07:07 +0000 URL: https://git.openjdk.org/leyden/commit/2bff8e0a1382f8820bc2479af87e45dc6b74cdb5 8360462: [macosx] row selection not working with Ctrl+Shift+Down/Up in AquaL&F Reviewed-by: dnguyen, abhiscxk ! src/java.desktop/macosx/classes/com/apple/laf/AquaKeyBindings.java + test/jdk/javax/swing/JTree/TestTreeRowSelection.java Changeset: 055d2ffa Branch: hermetic-java-runtime Author: Ioi Lam Date: 2025-07-02 04:24:55 +0000 URL: https://git.openjdk.org/leyden/commit/055d2ffa69e129b7617369e268f272517f25e2d7 8361215: Add AOT test case: verification constraint classes are excluded Reviewed-by: ccheung ! test/hotspot/jtreg/TEST.groups ! test/hotspot/jtreg/runtime/cds/appcds/aotCache/ExcludedClasses.java ! test/lib/jdk/test/lib/cds/CDSAppTester.java Changeset: 1ac74898 Branch: hermetic-java-runtime Author: Aleksey Shipilev Date: 2025-07-02 05:38:28 +0000 URL: https://git.openjdk.org/leyden/commit/1ac74898745ce9b109db5571d9dcbd907dd05831 8361180: Disable CompiledDirectCall verification with -VerifyInlineCaches Reviewed-by: kvn, thartmann ! src/hotspot/share/code/compiledIC.hpp Changeset: 0f1cd987 Branch: hermetic-java-runtime Author: Anton Artemov Committer: David Holmes Date: 2025-07-02 06:49:36 +0000 URL: https://git.openjdk.org/leyden/commit/0f1cd987b3520eaeab31e9faf782d6f81050803a 8284016: Normalize handshake closure names Reviewed-by: coleenp, sspitsyn ! src/hotspot/share/classfile/javaClasses.cpp ! src/hotspot/share/gc/shenandoah/shenandoahConcurrentGC.cpp ! src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp ! src/hotspot/share/gc/z/zMark.cpp ! src/hotspot/share/prims/scopedMemoryAccess.cpp ! src/hotspot/share/prims/whitebox.cpp ! src/hotspot/share/runtime/deoptimization.cpp ! src/hotspot/share/runtime/escapeBarrier.cpp ! src/hotspot/share/runtime/handshake.cpp ! src/hotspot/share/runtime/handshake.hpp ! src/hotspot/share/runtime/javaThread.cpp ! src/hotspot/share/runtime/javaThread.hpp ! src/hotspot/share/runtime/javaThread.inline.hpp ! src/hotspot/share/runtime/suspendResumeManager.cpp ! src/hotspot/share/runtime/suspendResumeManager.hpp ! src/hotspot/share/runtime/synchronizer.cpp ! src/hotspot/share/runtime/vmThread.cpp ! src/hotspot/share/services/threadService.cpp Changeset: 2304044a Branch: hermetic-java-runtime Author: Manuel H?ssig Date: 2025-07-02 08:35:51 +0000 URL: https://git.openjdk.org/leyden/commit/2304044ab2f228fe2fe4adb5975291e733b12d5c 8360641: TestCompilerCounts fails after 8354727 Reviewed-by: kvn, dfenacci, mdoerr ! test/hotspot/jtreg/compiler/arguments/TestCompilerCounts.java Changeset: eac8f5d2 Branch: hermetic-java-runtime Author: Saranya Natarajan Committer: Daniel Lund?n Date: 2025-07-02 08:38:31 +0000 URL: https://git.openjdk.org/leyden/commit/eac8f5d2c99e1bcc526da0f6a05af76e815c2db9 8325478: Restructure the macro expansion compiler phase to not include macro elimination Reviewed-by: kvn, dlunden ! src/hotspot/share/opto/c2_globals.hpp ! src/hotspot/share/opto/compile.cpp ! src/hotspot/share/opto/macro.cpp ! src/hotspot/share/opto/macro.hpp ! src/hotspot/share/opto/phasetype.hpp ! src/utils/IdealGraphVisualizer/README.md ! test/hotspot/jtreg/compiler/arguments/TestStressOptions.java ! test/hotspot/jtreg/compiler/debug/TestGenerateStressSeed.java ! test/hotspot/jtreg/compiler/debug/TestStress.java ! test/hotspot/jtreg/compiler/lib/ir_framework/CompilePhase.java ! test/hotspot/jtreg/testlibrary/ctw/src/sun/hotspot/tools/ctw/CtwRunner.java Changeset: ce998699 Branch: hermetic-java-runtime Author: Taizo Kurashige Committer: Manuel H?ssig Date: 2025-07-02 09:21:57 +0000 URL: https://git.openjdk.org/leyden/commit/ce9986991d60e116ac6680a1b6a4b3ee5384d105 8359120: Improve warning message when fail to load hsdis library Reviewed-by: mhaessig, thartmann ! src/hotspot/share/code/nmethod.cpp ! src/hotspot/share/compiler/abstractDisassembler.cpp Changeset: 3066a67e Branch: hermetic-java-runtime Author: Ashutosh Mehra Date: 2025-07-02 13:25:00 +0000 URL: https://git.openjdk.org/leyden/commit/3066a67e6279f7e3896ab545bc6c291d279d2b03 8361101: AOTCodeAddressTable::_stubs_addr not initialized/freed properly Reviewed-by: kvn, shade ! src/hotspot/share/code/aotCodeCache.cpp ! src/hotspot/share/code/aotCodeCache.hpp Changeset: 832bfbc0 Branch: hermetic-java-runtime Author: Albert Mingkun Yang Date: 2025-07-02 13:39:16 +0000 URL: https://git.openjdk.org/leyden/commit/832bfbc0ddcf3068bab5d45d361803152736383f 8338474: Parallel: Deprecate and obsolete PSChunkLargeArrays Reviewed-by: tschatzl, kbarrett ! src/hotspot/share/gc/parallel/parallel_globals.hpp ! src/hotspot/share/runtime/arguments.cpp Changeset: 549b8758 Branch: hermetic-java-runtime Author: Joe Darcy Date: 2025-07-02 15:24:29 +0000 URL: https://git.openjdk.org/leyden/commit/549b8758661e760a7475fb398fd5b036e561fed6 8361112: Use exact float -> Float16 conversion method in Float16 tests Reviewed-by: liach, rgiulietti ! test/jdk/jdk/incubator/vector/BasicFloat16ArithTests.java Changeset: c460f842 Branch: hermetic-java-runtime Author: Martin Doerr Date: 2025-07-02 15:31:29 +0000 URL: https://git.openjdk.org/leyden/commit/c460f842bf768995b271cd6362940877a4a79665 8361183: JDK-8360887 needs fixes to avoid cycles and better tests (aix) Co-authored-by: Alan Bateman Reviewed-by: alanb, jkern ! src/java.base/aix/classes/sun/nio/fs/AixFileSystemProvider.java ! test/jdk/java/nio/file/FileStore/Basic.java Changeset: c5037059 Branch: hermetic-java-runtime Author: Hamlin Li Date: 2025-07-02 17:16:12 +0000 URL: https://git.openjdk.org/leyden/commit/c50370599e40bfaeccba9aa6b28da661129f9450 8360090: [TEST] RISC-V: disable some cds tests on qemu Reviewed-by: lmesnik, rehn ! test/hotspot/jtreg/TEST.ROOT ! test/hotspot/jtreg/runtime/cds/TestDefaultArchiveLoading.java ! test/hotspot/jtreg/runtime/cds/appcds/TestDumpClassListSource.java ! test/hotspot/jtreg/runtime/cds/appcds/TransformInterfaceOfLambda.java ! test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/TestAutoCreateSharedArchiveNoDefaultArchive.java ! test/jtreg-ext/requires/VMProps.java Changeset: 5e30bf68 Branch: hermetic-java-runtime Author: Jatin Bhateja Date: 2025-07-02 17:47:20 +0000 URL: https://git.openjdk.org/leyden/commit/5e30bf68353d989aadc2d8176181226b2debd283 8360116: Add support for AVX10 floating point minmax instruction Reviewed-by: mhaessig, sviswanathan ! src/hotspot/cpu/x86/assembler_x86.cpp ! src/hotspot/cpu/x86/assembler_x86.hpp ! src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp ! src/hotspot/cpu/x86/c2_MacroAssembler_x86.hpp ! src/hotspot/cpu/x86/macroAssembler_x86.cpp ! src/hotspot/cpu/x86/x86.ad ! src/hotspot/cpu/x86/x86_64.ad Changeset: ea86a20e Branch: hermetic-java-runtime Author: Yudi Zheng Date: 2025-07-02 18:38:31 +0000 URL: https://git.openjdk.org/leyden/commit/ea86a20e6d74baea54df32415d9096d3b7bba1d7 8357424: [JVMCI] Avoid incrementing decompilation count for hosted compiled nmethod Reviewed-by: dnsimon, never, cslucas ! src/hotspot/share/code/nmethod.cpp ! src/hotspot/share/code/nmethod.hpp ! src/hotspot/share/jvmci/jvmciRuntime.cpp ! src/hotspot/share/jvmci/jvmciRuntime.hpp ! src/hotspot/share/runtime/deoptimization.cpp Changeset: 74822ce1 Branch: hermetic-java-runtime Author: Boris Ulasevich Date: 2025-07-02 21:15:46 +0000 URL: https://git.openjdk.org/leyden/commit/74822ce12acaf9816aa49b75ab5817ced3710776 8358183: [JVMCI] crash accessing nmethod::jvmci_name in CodeCache::aggregate Reviewed-by: eastigeevich, phh ! src/hotspot/share/code/codeBlob.cpp ! src/hotspot/share/code/nmethod.cpp Changeset: 1926aeb1 Branch: hermetic-java-runtime Author: Takuya Kiriyama Date: 2025-07-03 06:47:11 +0000 URL: https://git.openjdk.org/leyden/commit/1926aeb1a3b39cf2e4ea48f4c489cd023b5aa77d 8352016: Improve java/lang/RuntimeTests/RuntimeExitLogTest.java Reviewed-by: rriggs + test/jdk/java/lang/RuntimeTests/ExitLogging-ALL.properties ! test/jdk/java/lang/RuntimeTests/ExitLogging-FINE.properties + test/jdk/java/lang/RuntimeTests/ExitLogging-FINER.properties ! test/jdk/java/lang/RuntimeTests/ExitLogging-INFO.properties + test/jdk/java/lang/RuntimeTests/ExitLogging-OFF.properties + test/jdk/java/lang/RuntimeTests/ExitLogging-SEVERE.properties + test/jdk/java/lang/RuntimeTests/ExitLogging-WARNING.properties ! test/jdk/java/lang/RuntimeTests/RuntimeExitLogTest.java Changeset: 6c9236c8 Branch: hermetic-java-runtime Author: Thomas Schatzl Date: 2025-07-03 06:59:00 +0000 URL: https://git.openjdk.org/leyden/commit/6c9236c80c236487a7c37dcb947c0f9192322208 8361238: G1 tries to get CPU info from terminated threads at shutdown Reviewed-by: kbarrett, sangheki ! src/hotspot/share/runtime/java.cpp Changeset: fd13e1ce Branch: hermetic-java-runtime Author: Jan Lahoda Date: 2025-07-03 07:17:59 +0000 URL: https://git.openjdk.org/leyden/commit/fd13e1ce9805a903ab60ad9b476eb5a6687d22ee 8358801: javac produces class that does not pass verifier. Reviewed-by: mcimadamore, liach ! src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Gen.java + test/langtools/tools/javac/patterns/T8358801.java Changeset: c75df634 Branch: hermetic-java-runtime Author: Beno?t Maillard Committer: Emanuel Peter Date: 2025-07-03 07:28:11 +0000 URL: https://git.openjdk.org/leyden/commit/c75df634be9a0073fa246d42e5c362a09f1734f3 8359602: Ideal optimizations depending on input type are missed because of missing notification mechanism from CCP Reviewed-by: epeter, thartmann ! src/hotspot/share/opto/phaseX.cpp + test/hotspot/jtreg/compiler/c2/TestModControlFoldedAfterCCP.java Changeset: 2f683fdc Branch: hermetic-java-runtime Author: Jatin Bhateja Date: 2025-07-03 08:03:55 +0000 URL: https://git.openjdk.org/leyden/commit/2f683fdc4a8f9c227e878b0d7fca645fc8abe1b6 8361037: [ubsan] compiler/c2/irTests/TestFloat16ScalarOperations division by 0 Reviewed-by: mhaessig, sviswanathan ! src/hotspot/share/opto/divnode.cpp Changeset: 1be29bd7 Branch: hermetic-java-runtime Author: Jaikiran Pai Date: 2025-07-03 09:32:09 +0000 URL: https://git.openjdk.org/leyden/commit/1be29bd725a4642b841c60c19f2f7f689a360831 8361060: Keep track of the origin server against which a jdk.internal.net.http.HttpConnection was constructed Reviewed-by: dfuchs ! src/java.net.http/share/classes/jdk/internal/net/http/AbstractAsyncSSLConnection.java ! src/java.net.http/share/classes/jdk/internal/net/http/AsyncSSLConnection.java ! src/java.net.http/share/classes/jdk/internal/net/http/AsyncSSLTunnelConnection.java ! src/java.net.http/share/classes/jdk/internal/net/http/HttpConnection.java + src/java.net.http/share/classes/jdk/internal/net/http/Origin.java ! src/java.net.http/share/classes/jdk/internal/net/http/PlainHttpConnection.java ! src/java.net.http/share/classes/jdk/internal/net/http/PlainProxyConnection.java ! src/java.net.http/share/classes/jdk/internal/net/http/PlainTunnelingConnection.java ! src/java.net.http/share/classes/jdk/internal/net/http/common/Utils.java + test/jdk/java/net/httpclient/OriginTest.java ! test/jdk/java/net/httpclient/whitebox/java.net.http/jdk/internal/net/http/ConnectionPoolTest.java Changeset: 2528c620 Branch: hermetic-java-runtime Author: Matthias Baesken Date: 2025-07-03 11:35:54 +0000 URL: https://git.openjdk.org/leyden/commit/2528c620a61195ac22d921b168444a7967bf1805 8361198: [AIX] fix misleading error output in thread_cpu_time_unchecked Reviewed-by: mdoerr, azeller ! src/hotspot/os/aix/os_aix.cpp Changeset: 5e40fb6b Branch: hermetic-java-runtime Author: Thomas Schatzl Date: 2025-07-03 11:43:35 +0000 URL: https://git.openjdk.org/leyden/commit/5e40fb6bda1d56e3eba584b49aa0b68096b34169 8277394: Remove the use of safepoint_workers in reference processor Co-authored-by: Albert Mingkun Yang Reviewed-by: ayang, iwalulya ! src/hotspot/share/gc/g1/g1ConcurrentMark.cpp ! src/hotspot/share/gc/g1/g1FullCollector.cpp ! src/hotspot/share/gc/g1/g1YoungCollector.cpp ! src/hotspot/share/gc/parallel/psParallelCompact.cpp ! src/hotspot/share/gc/parallel/psScavenge.cpp ! src/hotspot/share/gc/serial/defNewGeneration.cpp ! src/hotspot/share/gc/serial/serialFullGC.cpp ! src/hotspot/share/gc/shared/referenceProcessor.cpp ! src/hotspot/share/gc/shared/referenceProcessor.hpp Changeset: 24117c6e Branch: hermetic-java-runtime Author: Rajat Mahajan Committer: Alexey Ivanov Date: 2025-07-03 14:24:52 +0000 URL: https://git.openjdk.org/leyden/commit/24117c6e9aa862bad839e93eff70810a75605ac5 8349188: LineBorder does not scale correctly Co-authored-by: Alexey Ivanov Reviewed-by: aivanov, serb ! src/java.desktop/share/classes/javax/swing/border/LineBorder.java ! test/jdk/javax/swing/border/LineBorder/ScaledLineBorderTest.java ! test/jdk/javax/swing/border/LineBorder/ScaledTextFieldBorderTest.java Changeset: 3daa03c3 Branch: hermetic-java-runtime Author: Ioi Lam Date: 2025-07-03 15:31:34 +0000 URL: https://git.openjdk.org/leyden/commit/3daa03c30f8e6ab9c498edb7d59346ce0b30450f 8358680: AOT cache creation fails: no strings should have been added Co-authored-by: Aleksey Shipilev Reviewed-by: coleenp, shade ! src/hotspot/share/classfile/stringTable.cpp ! src/hotspot/share/classfile/stringTable.hpp ! src/hotspot/share/compiler/compileBroker.cpp ! src/hotspot/share/compiler/compileBroker.hpp ! src/hotspot/share/compiler/compileTask.cpp ! src/hotspot/share/compiler/compileTask.hpp ! src/hotspot/share/runtime/mutexLocker.cpp ! src/hotspot/share/runtime/mutexLocker.hpp Changeset: 66836d40 Branch: hermetic-java-runtime Author: Ioi Lam Date: 2025-07-03 16:52:19 +0000 URL: https://git.openjdk.org/leyden/commit/66836d40b80f9c5482c1322d1d07f078ad9dcc02 8361292: Rename ModuleEntry::module() to module_oop() Reviewed-by: coleenp, ccheung, sspitsyn ! src/hotspot/share/classfile/classFileParser.cpp ! src/hotspot/share/classfile/classLoaderDataShared.cpp ! src/hotspot/share/classfile/javaClasses.cpp ! src/hotspot/share/classfile/moduleEntry.cpp ! src/hotspot/share/classfile/moduleEntry.hpp ! src/hotspot/share/classfile/modules.cpp ! src/hotspot/share/jfr/jni/jfrUpcalls.cpp ! src/hotspot/share/jvmci/jvmciCompiler.cpp ! src/hotspot/share/oops/arrayKlass.cpp ! src/hotspot/share/oops/klass.cpp ! src/hotspot/share/prims/jvmtiExport.cpp ! src/hotspot/share/runtime/reflection.cpp Changeset: a2315ddd Branch: hermetic-java-runtime Author: Evgeny Nikitin Committer: Leonid Mesnik Date: 2025-07-03 16:58:30 +0000 URL: https://git.openjdk.org/leyden/commit/a2315ddd2a343ed594dd1b0b3d0dc5b3a71f509b 8357739: [jittester] disable the hashCode method Reviewed-by: lmesnik ! test/hotspot/jtreg/testlibrary/jittester/conf/exclude.methods.lst + test/hotspot/jtreg/testlibrary/jittester/src/jdk/test/lib/jittester/MethodTemplate.java ! test/hotspot/jtreg/testlibrary/jittester/src/jdk/test/lib/jittester/TypesParser.java + test/lib-test/jdk/test/lib/jittester/MethodTemplateTest.java Changeset: 25ed36f3 Branch: hermetic-java-runtime Author: Archie Cobbs Date: 2025-07-03 18:13:07 +0000 URL: https://git.openjdk.org/leyden/commit/25ed36f3ef1fe1d6914689c762910f104775f48c 8359493: Refactor how aggregated mandatory warnings are handled in the compiler 8350514: Refactor MandatoryWarningHandler to support dynamic verbosity Reviewed-by: mcimadamore ! make/langtools/tools/propertiesparser/gen/ClassGenerator.java ! make/langtools/tools/propertiesparser/parser/Message.java ! make/langtools/tools/propertiesparser/parser/MessageLine.java ! make/langtools/tools/propertiesparser/resources/templates.properties ! src/jdk.compiler/share/classes/com/sun/tools/javac/api/JavacTaskPool.java ! src/jdk.compiler/share/classes/com/sun/tools/javac/code/Preview.java ! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java ! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java ! src/jdk.compiler/share/classes/com/sun/tools/javac/launcher/MemoryContext.java ! src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java ! src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavaTokenizer.java ! src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java ! src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties ! src/jdk.compiler/share/classes/com/sun/tools/javac/util/JCDiagnostic.java ! src/jdk.compiler/share/classes/com/sun/tools/javac/util/Log.java - src/jdk.compiler/share/classes/com/sun/tools/javac/util/MandatoryWarningHandler.java + src/jdk.compiler/share/classes/com/sun/tools/javac/util/WarningAggregator.java Changeset: 2d9f0324 Branch: hermetic-java-runtime Author: Brian Burkhalter Date: 2025-07-03 18:53:59 +0000 URL: https://git.openjdk.org/leyden/commit/2d9f0324ba21adf216649339c48e49b9cd1e33ff 8360028: (fs) Path.relativize throws StringIndexOutOfBoundsException (win) Reviewed-by: alanb ! src/java.base/windows/classes/sun/nio/fs/WindowsLinkSupport.java Changeset: 003be0de Branch: hermetic-java-runtime Author: Calvin Cheung Date: 2025-07-03 19:40:22 +0000 URL: https://git.openjdk.org/leyden/commit/003be0dee2f6c190697ec0a923546362c50cc0e5 8361325: Refactor ClassLoaderExt Reviewed-by: coleenp, sspitsyn ! src/hotspot/share/cds/archiveBuilder.cpp ! src/hotspot/share/cds/cdsProtectionDomain.cpp ! src/hotspot/share/cds/classListParser.cpp ! src/hotspot/share/cds/filemap.cpp ! src/hotspot/share/cds/heapShared.cpp ! src/hotspot/share/cds/metaspaceShared.cpp ! src/hotspot/share/classfile/classLoader.cpp ! src/hotspot/share/classfile/classLoader.hpp - src/hotspot/share/classfile/classLoaderExt.cpp - src/hotspot/share/classfile/classLoaderExt.hpp ! src/hotspot/share/classfile/modules.cpp ! src/hotspot/share/classfile/systemDictionary.cpp ! src/hotspot/share/classfile/systemDictionaryShared.cpp ! src/hotspot/share/prims/jvmtiEnv.cpp Changeset: dcc7254a Branch: hermetic-java-runtime Author: Eric Caspole Date: 2025-07-03 19:43:30 +0000 URL: https://git.openjdk.org/leyden/commit/dcc7254a38bb0fecacd7683682d4c42e49335222 8361213: J2DAnalyzer should emit the score as a decimal Reviewed-by: prr ! src/demo/share/java2d/J2DBench/src/j2dbench/report/J2DAnalyzer.java Changeset: 77e69e02 Branch: hermetic-java-runtime Author: Erik Gahlin Date: 2025-07-03 20:01:33 +0000 URL: https://git.openjdk.org/leyden/commit/77e69e02ebd280636859dd698423db6ac3bc7f5c 8358750: JFR: EventInstrumentation MASK_THROTTLE* constants should be computed in longs Reviewed-by: mgronlun ! src/jdk.jfr/share/classes/jdk/jfr/internal/EventInstrumentation.java ! test/jdk/jdk/jfr/api/metadata/annotations/TestThrottle.java Changeset: 566279af Branch: hermetic-java-runtime Author: Chen Liang Date: 2025-07-03 20:49:05 +0000 URL: https://git.openjdk.org/leyden/commit/566279af49a7cf47e6030222e989417855caf1a9 8360022: ClassRefDupInConstantPoolTest.java fails when running in repeat Reviewed-by: vromero ! test/langtools/tools/javac/jvm/ClassRefDupInConstantPoolTest.java Changeset: da0a51ce Branch: hermetic-java-runtime Author: David Holmes Date: 2025-07-03 21:02:28 +0000 URL: https://git.openjdk.org/leyden/commit/da0a51ce97453a47b2c7d11e5206774232309e69 8357601: Checked version of JNI ReleaseArrayElements needs to filter out known wrapped arrays Reviewed-by: coleenp, jsjolen ! src/hotspot/os/windows/safefetch_windows.hpp ! src/hotspot/share/memory/guardedMemory.cpp ! src/hotspot/share/memory/guardedMemory.hpp ! src/hotspot/share/prims/jniCheck.cpp + test/hotspot/jtreg/runtime/jni/checked/TestCharArrayReleasing.java + test/hotspot/jtreg/runtime/jni/checked/libCharArrayReleasing.c Changeset: 16af4733 Branch: hermetic-java-runtime Author: Manukumar V S Committer: Phil Race Date: 2025-07-03 22:32:23 +0000 URL: https://git.openjdk.org/leyden/commit/16af473397a7b3a6e6e33dd684d0d511168b989b 8361115: javax/swing/JComboBox/bug4276920.java unnecessarily throws Error instead of RuntimeException Reviewed-by: prr ! test/jdk/javax/swing/JComboBox/bug4276920.java Changeset: 854de8c9 Branch: hermetic-java-runtime Author: Ioi Lam Date: 2025-07-03 23:54:05 +0000 URL: https://git.openjdk.org/leyden/commit/854de8c9c6a1d851c1788e5f2250fe0928c51ca4 8336147: Clarify CDS documentation about static vs dynamic archive Reviewed-by: ccheung, shade ! src/java.base/share/man/java.md Changeset: 21f2e9a7 Branch: hermetic-java-runtime Author: Kim Barrett Date: 2025-07-04 04:08:42 +0000 URL: https://git.openjdk.org/leyden/commit/21f2e9a71c31320a8b1248e3970a82b871c63c2b 8344332: (bf) Migrate DirectByteBuffer away from jdk.internal.ref.Cleaner Reviewed-by: rriggs, bchristi ! src/java.base/share/classes/java/nio/Bits.java + src/java.base/share/classes/java/nio/BufferCleaner.java ! src/java.base/share/classes/java/nio/Direct-X-Buffer.java.template ! src/java.base/share/classes/jdk/internal/misc/Unsafe.java + src/java.base/share/classes/sun/nio/Cleaner.java ! src/java.base/share/classes/sun/nio/ch/DirectBuffer.java ! src/java.base/share/classes/sun/nio/ch/FileChannelImpl.java + test/micro/org/openjdk/bench/java/nio/DirectByteBufferChurn.java + test/micro/org/openjdk/bench/java/nio/DirectByteBufferGC.java Changeset: 5cf349c3 Branch: hermetic-java-runtime Author: Doug Simon Date: 2025-07-04 07:37:20 +0000 URL: https://git.openjdk.org/leyden/commit/5cf349c3b08324e994a4143dcc34a59fd81323f9 8361355: Negative cases of Annotated.getAnnotationData implementations are broken Reviewed-by: never ! src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/hotspot/HotSpotResolvedJavaFieldImpl.java ! src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl.java ! src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/hotspot/HotSpotResolvedJavaType.java ! src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/hotspot/HotSpotResolvedObjectTypeImpl.java ! src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/hotspot/HotSpotResolvedPrimitiveType.java ! src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/meta/ResolvedJavaType.java ! test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaType.java Changeset: 56ebb8c1 Branch: hermetic-java-runtime Author: Jonas Norlinder Committer: Thomas Schatzl Date: 2025-07-04 10:16:55 +0000 URL: https://git.openjdk.org/leyden/commit/56ebb8c1b936e5a4c14486153c9f60df705095ad 8359110: Log accumulated GC and process CPU time upon VM exit Co-authored-by: Erik ?sterlund Co-authored-by: Jonas Norlinder Reviewed-by: tschatzl, ayang ! src/hotspot/os/posix/os_posix.cpp ! src/hotspot/os/windows/os_windows.cpp ! src/hotspot/share/gc/epsilon/epsilonHeap.hpp ! src/hotspot/share/gc/parallel/parallelScavengeHeap.hpp ! src/hotspot/share/gc/serial/serialHeap.hpp ! src/hotspot/share/gc/shared/collectedHeap.cpp ! src/hotspot/share/gc/shared/collectedHeap.hpp ! src/hotspot/share/gc/shared/collectedHeap.inline.hpp ! src/hotspot/share/gc/shared/stringdedup/stringDedup.hpp ! src/hotspot/share/gc/shared/stringdedup/stringDedupProcessor.hpp + src/hotspot/share/gc/shared/vmThreadCpuTimeScope.hpp + src/hotspot/share/gc/shared/vmThreadCpuTimeScope.inline.hpp ! src/hotspot/share/runtime/java.cpp ! src/hotspot/share/runtime/os.hpp ! src/hotspot/share/runtime/vmThread.cpp Changeset: fba74f79 Branch: hermetic-java-runtime Author: Magnus Ihse Bursie Date: 2025-07-04 12:19:24 +0000 URL: https://git.openjdk.org/leyden/commit/fba74f796eeeb42accc60ecab444c3d933b73e70 8361306: jdk.compiler-gendata needs to depend on java.base-launchers Reviewed-by: shade ! make/Main.gmk Changeset: f153e415 Branch: hermetic-java-runtime Author: Manuel H?ssig Date: 2025-07-04 13:06:36 +0000 URL: https://git.openjdk.org/leyden/commit/f153e415d740f4ede272929171e9bb3e73ddbe1c 8361253: CommandLineOptionTest library should report observed values on failure Reviewed-by: dholmes, shade ! test/lib/jdk/test/lib/cli/CommandLineOptionTest.java Changeset: 1c560727 Branch: hermetic-java-runtime Author: Srinivas Vamsi Parasa Committer: Sandhya Viswanathan Date: 2025-07-04 15:08:57 +0000 URL: https://git.openjdk.org/leyden/commit/1c560727b850593561982ccc3ed37b0e98b3bbee 8360775: Fix Shenandoah GC test failures when APX is enabled Reviewed-by: sviswanathan, jbhateja, epeter ! src/hotspot/cpu/x86/assembler_x86.cpp ! src/hotspot/cpu/x86/gc/shenandoah/shenandoahBarrierSetAssembler_x86.cpp Changeset: f2d2eef9 Branch: hermetic-java-runtime Author: Nizar Benalla Date: 2025-07-04 15:10:22 +0000 URL: https://git.openjdk.org/leyden/commit/f2d2eef988c57cc9f6194a8fd5b2b422035ee68f 8177100: APIs duplicated in JavaDoc Reviewed-by: liach, hannesw ! src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/VisibleMemberTable.java + test/langtools/jdk/javadoc/doclet/testDuplicateMethodsWarn/TestDuplicateMethods.java Changeset: f3e0588d Branch: hermetic-java-runtime Author: Erik Gahlin Date: 2025-07-06 15:21:35 +0000 URL: https://git.openjdk.org/leyden/commit/f3e0588d0b825a68a4ad61ddf806877f46da69dc 8361338: JFR: Min and max time in MethodTime event is confusing Reviewed-by: mgronlun ! src/jdk.jfr/share/classes/jdk/jfr/events/MethodTimingEvent.java ! src/jdk.jfr/share/classes/jdk/jfr/internal/query/view.ini ! src/jdk.jfr/share/classes/jdk/jfr/internal/tracing/TimedClass.java ! src/jdk.jfr/share/classes/jdk/jfr/internal/tracing/TimedMethod.java Changeset: 3bcbcc57 Branch: hermetic-java-runtime Author: David Holmes Date: 2025-07-06 21:45:03 +0000 URL: https://git.openjdk.org/leyden/commit/3bcbcc5747f9402796a1d9443d7a27d37acee9e0 8361439: [BACKOUT] 8357601: Checked version of JNI ReleaseArrayElements needs to filter out known wrapped arrays Reviewed-by: lmesnik ! src/hotspot/os/windows/safefetch_windows.hpp ! src/hotspot/share/memory/guardedMemory.cpp ! src/hotspot/share/memory/guardedMemory.hpp ! src/hotspot/share/prims/jniCheck.cpp - test/hotspot/jtreg/runtime/jni/checked/TestCharArrayReleasing.java - test/hotspot/jtreg/runtime/jni/checked/libCharArrayReleasing.c Changeset: 44cff9d6 Branch: hermetic-java-runtime Author: Anass Baya Committer: Sergey Bylokhov Date: 2025-07-07 04:58:17 +0000 URL: https://git.openjdk.org/leyden/commit/44cff9d6abab5df086e89df16f8b63c48cd33c7b 8346952: GetGraphicsStressTest.java fails: Native resources unavailable Reviewed-by: serb ! src/java.desktop/windows/native/libawt/windows/awt_Window.cpp + test/jdk/java/awt/Frame/BogusFocusableWindowState/BogusFocusableWindowState.java ! test/jdk/java/awt/Frame/GetGraphicsStressTest/GetGraphicsStressTest.java Changeset: 45300dd1 Branch: hermetic-java-runtime Author: hanguanqiang Committer: Tobias Hartmann Date: 2025-07-07 05:22:44 +0000 URL: https://git.openjdk.org/leyden/commit/45300dd1234c9aa92d6b82f1ef2b05b949b1ea9f 8358568: Purge obsolete/broken GenerateSynchronizationCode flag Reviewed-by: thartmann, shade ! src/hotspot/share/c1/c1_LIRGenerator.cpp ! src/hotspot/share/opto/callnode.cpp ! src/hotspot/share/opto/graphKit.cpp ! src/hotspot/share/opto/output.cpp ! src/hotspot/share/opto/parse1.cpp ! src/hotspot/share/runtime/globals.hpp Changeset: e9a43416 Branch: hermetic-java-runtime Author: Artem Semenov Date: 2025-07-07 06:11:50 +0000 URL: https://git.openjdk.org/leyden/commit/e9a434165a6ec07cde0429c7f9823bbc5dab7857 8360664: Null pointer dereference in src/hotspot/share/prims/jvmtiTagMap.cpp in IterateOverHeapObjectClosure::do_object() Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Artem Semenov . Reviewed-by: sspitsyn, amenkov, cjplummer ! src/hotspot/share/prims/jvmtiTagMap.cpp Changeset: d75ea7e6 Branch: hermetic-java-runtime Author: Xiaohong Gong Date: 2025-07-07 06:52:29 +0000 URL: https://git.openjdk.org/leyden/commit/d75ea7e67951275fe27f1e137c961f39d779a046 8355563: VectorAPI: Refactor current implementation of subword gather load API Reviewed-by: epeter, psandoz, sviswanathan, jbhateja ! src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp ! src/hotspot/cpu/x86/c2_MacroAssembler_x86.hpp ! src/hotspot/cpu/x86/x86.ad ! src/hotspot/share/classfile/vmIntrinsics.hpp ! src/hotspot/share/opto/matcher.cpp ! src/hotspot/share/opto/vectorIntrinsics.cpp ! src/hotspot/share/opto/vectornode.hpp ! src/java.base/share/classes/jdk/internal/vm/vector/VectorSupport.java ! src/jdk.incubator.vector/share/classes/jdk/incubator/vector/ByteVector.java ! src/jdk.incubator.vector/share/classes/jdk/incubator/vector/DoubleVector.java ! src/jdk.incubator.vector/share/classes/jdk/incubator/vector/FloatVector.java ! src/jdk.incubator.vector/share/classes/jdk/incubator/vector/IntVector.java ! src/jdk.incubator.vector/share/classes/jdk/incubator/vector/LongVector.java ! src/jdk.incubator.vector/share/classes/jdk/incubator/vector/ShortVector.java ! src/jdk.incubator.vector/share/classes/jdk/incubator/vector/X-Vector.java.template Changeset: 8ad48368 Branch: hermetic-java-runtime Author: Daniel Fuchs Date: 2025-07-07 08:22:05 +0000 URL: https://git.openjdk.org/leyden/commit/8ad48368838588846324550c455c66ae86f1226b 8361249: PlainHttpConnection connection logic can be simplified Reviewed-by: djelinski, vyazici, michaelm, jpai ! src/java.net.http/share/classes/jdk/internal/net/http/PlainHttpConnection.java Changeset: 1fa772e8 Branch: hermetic-java-runtime Author: Aleksey Shipilev Date: 2025-07-07 08:24:24 +0000 URL: https://git.openjdk.org/leyden/commit/1fa772e8143bb2d758ef183280d123d1ff8aada8 8343546: GHA: Cache required dependencies in master-branch workflow Reviewed-by: ihse ! .github/workflows/build-alpine-linux.yml ! .github/workflows/build-cross-compile.yml ! .github/workflows/build-linux.yml ! .github/workflows/build-macos.yml ! .github/workflows/build-windows.yml ! .github/workflows/main.yml ! .github/workflows/test.yml Changeset: 9449fea2 Branch: hermetic-java-runtime Author: Christian Stein Date: 2025-07-07 08:59:50 +0000 URL: https://git.openjdk.org/leyden/commit/9449fea2cd7aa7375f1b127e5f0d2a36ffaa1814 8358552: EndOfFileException in System.in.read() and IO.readln() etc. in JShell Reviewed-by: jlahoda ! src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java ! src/jdk.jshell/share/classes/jdk/internal/jshell/tool/IOContext.java ! src/jdk.jshell/share/classes/jdk/internal/jshell/tool/JShellTool.java ! src/jdk.jshell/share/classes/jdk/jshell/execution/impl/ConsoleImpl.java ! test/langtools/jdk/jshell/InputUITest.java ! test/langtools/jdk/jshell/UITesting.java Changeset: 4df9c873 Branch: hermetic-java-runtime Author: Andrew Haley Date: 2025-07-07 09:16:39 +0000 URL: https://git.openjdk.org/leyden/commit/4df9c873452293ccde3c7dbcd64e1ced6b6af52e 8360884: Better scoped values Reviewed-by: liach, alanb ! src/java.base/share/classes/java/lang/ScopedValue.java ! test/micro/org/openjdk/bench/java/lang/ScopedValues.java ! test/micro/org/openjdk/bench/java/lang/ScopedValuesData.java Changeset: 7c13a2cd Branch: hermetic-java-runtime Author: ANUPAM DEV Committer: Alexey Ivanov Date: 2025-07-07 12:15:44 +0000 URL: https://git.openjdk.org/leyden/commit/7c13a2cd9aa5ec9da00084de2388abc189e2f4ef 8361463: Render method of javax.swing.text.AbstractDocument uses 'currency' instead of 'concurrency' Reviewed-by: psadhukhan, tr, abhiscxk, aivanov ! src/java.desktop/share/classes/javax/swing/text/AbstractDocument.java Changeset: afb4a1be Branch: hermetic-java-runtime Author: Roger Riggs Date: 2025-07-07 12:43:28 +0000 URL: https://git.openjdk.org/leyden/commit/afb4a1be9e5dc2a9c0d812f5a36717c9f82241a9 8354872: Clarify java.lang.Process resource cleanup Reviewed-by: jpai ! src/java.base/share/classes/java/lang/Process.java ! src/java.base/share/classes/java/lang/ProcessBuilder.java Changeset: fea73c1d Branch: hermetic-java-runtime Author: Richard Reingruber Date: 2025-07-07 13:21:11 +0000 URL: https://git.openjdk.org/leyden/commit/fea73c1d40441561a246f2a09a739367cfc197ea 8360599: [TESTBUG] DumpThreadsWithEliminatedLock.java fails because of unstable inlining Reviewed-by: alanb, mdoerr, lmesnik ! test/jdk/com/sun/management/HotSpotDiagnosticMXBean/DumpThreadsWithEliminatedLock.java Changeset: 05c9eec8 Branch: hermetic-java-runtime Author: Vicente Romero Date: 2025-07-07 14:56:53 +0000 URL: https://git.openjdk.org/leyden/commit/05c9eec8d087cbfffed19031a531b72ad18a52cf 8361214: An anonymous class is erroneously being classify as an abstract class Reviewed-by: liach, mcimadamore ! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java + test/langtools/tools/javac/generics/diamond/AnonymousLabeledAsAbstractTest.java Changeset: 362916f9 Branch: hermetic-java-runtime Author: Jiangli Zhou Date: 2025-07-07 09:37:15 +0000 URL: https://git.openjdk.org/leyden/commit/362916f99c82ed46ed6e8d78cdb6c1395342763a Merge branch 'master' into hermetic-java-runtime ! make/Main.gmk ! src/hotspot/share/classfile/classLoader.cpp ! src/hotspot/share/prims/jvm.cpp ! src/hotspot/share/runtime/arguments.cpp ! src/hotspot/share/runtime/globals.hpp ! src/hotspot/share/runtime/os.cpp ! make/Main.gmk ! src/hotspot/share/classfile/classLoader.cpp ! src/hotspot/share/prims/jvm.cpp ! src/hotspot/share/runtime/arguments.cpp ! src/hotspot/share/runtime/globals.hpp ! src/hotspot/share/runtime/os.cpp From jkratochvil at openjdk.org Mon Jul 7 18:21:07 2025 From: jkratochvil at openjdk.org (Jan Kratochvil) Date: Mon, 7 Jul 2025 18:21:07 GMT Subject: RFR: Store cpu features in AOTCodeCache header In-Reply-To: References: Message-ID: On Fri, 4 Jul 2025 20:30:45 GMT, Ashutosh Mehra wrote: > This is the initial version of storing cpu features in the AOTCodeCache to verify runtime env has the same cpu capabilities as the assembly env. It covers both x86 and aarch64. > AOTCodeCache header is updated to store the cpu features in arch-dependent form (although its same for currently supported architectures - x86 and aarch64). > > It also fixes a bug - the `polling_page_vectors_safepoint_handler_blob` can be null if AVX is not present on a system. This causes crash as this blob's entry point is stored in the address table. > I came across this when I did the assembly run with -XX:UseAVX=0 option. It can be a future extension but Leyden may also find useful an equivalent of `-XX:CPUFeatures=generic` so that you can store the data on any machine and restore it also on any machine - limiting the CPU feature set in all runs to some reasonable minimum. ------------- PR Comment: https://git.openjdk.org/leyden/pull/84#issuecomment-3046129476 From adinn at openjdk.org Tue Jul 8 10:55:04 2025 From: adinn at openjdk.org (Andrew Dinn) Date: Tue, 8 Jul 2025 10:55:04 GMT Subject: RFR: Store cpu features in AOTCodeCache header In-Reply-To: References: Message-ID: On Mon, 7 Jul 2025 18:18:35 GMT, Jan Kratochvil wrote: > It can be a future extension but Leyden may also find useful an equivalent of -XX:CPUFeatures=generic so that you can store the data on any machine and restore it also on any machine - limiting the CPU feature set in all runs to some reasonable minimum. We have discussed such an option in dev team meetings. We are still considering what would be the most useful and/or usable model. ------------- PR Comment: https://git.openjdk.org/leyden/pull/84#issuecomment-3048396615 From adinn at openjdk.org Tue Jul 8 10:55:04 2025 From: adinn at openjdk.org (Andrew Dinn) Date: Tue, 8 Jul 2025 10:55:04 GMT Subject: RFR: Store cpu features in AOTCodeCache header In-Reply-To: References: <91b0kruBCtLgf7lYX_RNMfsi1HltXtUEipKM206Te3k=.2c1e13a6-8639-4204-9a00-1de7cb936c0a@github.com> Message-ID: On Mon, 7 Jul 2025 16:18:05 GMT, Jan Kratochvil wrote: >> Could you provide more detail about your statement "some features presence affect ABI of the JIT-compiled code"? > > Simply said if you store the compiled Java code on old CPU (almost no features) and then run it on new CPU (full features) then it will crash. It crashes when a newly compiled code calls the restored code or vice versa. If you disagree I can try to reproduce with Leyden, it was happening with CRaC. @jankratochvil I'm not disagreeing - merely wanting to see where CRaC goes wrong and why (noting that it is a slightly different circumstance to the AOT Cache case). My preferred position would be that there /ought not/ to be any issues reusing code generated during the AOT Cache assembly phase in the absence of some given feature in combination with with code generated in a production run where that feature is present i.e. that that any incompatibility would constitute an error in the code generation scheme. I'd be very interested in any evidence you can provide to show that 1) such a code generation error exists or, worse, 2) my preference is unrealizable. ------------- PR Review Comment: https://git.openjdk.org/leyden/pull/84#discussion_r2192155973 From ioi.lam at oracle.com Wed Jul 9 23:58:43 2025 From: ioi.lam at oracle.com (ioi.lam at oracle.com) Date: Wed, 9 Jul 2025 16:58:43 -0700 Subject: [leyden] Please review 8360555: Archive all unnamed modules in CDS full module graph Message-ID: <129d6a27-772c-4c51-802e-4594289b18da@oracle.com> Leyden developers, please review https://github.com/openjdk/jdk/pull/26082 This PR is a preliminary step for JDK-8350550: Preload classes from AOT cache during VM bootstrap, which will make sure all cached classes have already been loaded before any Java code is executed. This should make it easier to implement AOT compilation of Java methods. Thanks! - Ioi From hamlin at rivosinc.com Thu Jul 10 11:21:05 2025 From: hamlin at rivosinc.com (Hamlin Li) Date: Thu, 10 Jul 2025 12:21:05 +0100 Subject: Question about supporting aot on other platforms (RISC-V) Message-ID: Hi, I'm trying to apply changes related to aot on riscv (first step is https://github.com/openjdk/jdk/pull/26101, also plan to apply further changes in the future gradually). As Andrew suggested in the pr, there will be more changes (especially related to code save/restore) from leyden premain to mainline. I went through the pr's and discussion of leyden, found out several changes might be platform related: 1. Store cpu features in AOTCodeCache header ( https://github.com/openjdk/leyden/pull/84 ) (Open) 2. AOT code generation should support UseCompactObjectHeaders ( https://github.com/openjdk/leyden/pull/78 ) (committed into premain) I think in the short future, these above pr's are going to get into mainline. But I might overlook some pr's or discussions, Besides of these above pr's, are there any other potential changes or discussions I should pay attention to when I try to support aot on riscv? I asked the questions to make sure after I integrate https://github.com/openjdk/jdk/pull/26101, even if more leyden changes are merged (including the above ones) into mainline, I can still make aot work as expected on riscv quickly, rather than break aot things for a long time, i.e. hope no surprise in the progress. Thank you -Hamlin -------------- next part -------------- An HTML attachment was scrubbed... URL: From iklam at openjdk.org Fri Jul 11 15:38:02 2025 From: iklam at openjdk.org (Ioi Lam) Date: Fri, 11 Jul 2025 15:38:02 GMT Subject: Integrated: Remove Leyden experimental workflow In-Reply-To: References: Message-ID: On Fri, 27 Jun 2025 17:28:30 GMT, Ioi Lam wrote: > Remove the Leyden experimental workflow: `-XX:CacheDataStore` switch and friends. > > We should be using the standard JEP 483/514 workflow for AOT cache. This pull request has now been integrated. Changeset: 03c66c7a Author: Ioi Lam URL: https://git.openjdk.org/leyden/commit/03c66c7a9b905e254342ea7d07216966a5800e32 Stats: 669 lines in 25 files changed: 22 ins; 596 del; 51 mod Remove Leyden experimental workflow Reviewed-by: asmehra ------------- PR: https://git.openjdk.org/leyden/pull/83 From iklam at openjdk.org Fri Jul 11 15:39:08 2025 From: iklam at openjdk.org (Ioi Lam) Date: Fri, 11 Jul 2025 15:39:08 GMT Subject: git: openjdk/leyden: premain: Remove Leyden experimental workflow Message-ID: <3efa73c9-fec1-42bf-ac81-2468ecdfc848@openjdk.org> Changeset: 03c66c7a Branch: premain Author: Ioi Lam Date: 2025-07-11 15:35:30 +0000 URL: https://git.openjdk.org/leyden/commit/03c66c7a9b905e254342ea7d07216966a5800e32 Remove Leyden experimental workflow Reviewed-by: asmehra ! src/hotspot/share/cds/cdsConfig.cpp ! src/hotspot/share/cds/cdsConfig.hpp ! src/hotspot/share/cds/cds_globals.hpp ! src/hotspot/share/cds/metaspaceShared.cpp ! src/hotspot/share/cds/metaspaceShared.hpp ! src/hotspot/share/runtime/arguments.cpp ! src/hotspot/share/runtime/threads.cpp ! test/hotspot/jtreg/TEST.groups ! test/hotspot/jtreg/premain/spring-petclinic/WarmupMakefile ! test/hotspot/jtreg/runtime/cds/appcds/aotCache/ExcludedClasses.java ! test/hotspot/jtreg/runtime/cds/appcds/aotCache/SpecialCacheNames.java ! test/hotspot/jtreg/runtime/cds/appcds/applications/HelidonQuickStartSE.java ! test/hotspot/jtreg/runtime/cds/appcds/applications/JavacBench.java ! test/hotspot/jtreg/runtime/cds/appcds/applications/MicronautFirstApp.java ! test/hotspot/jtreg/runtime/cds/appcds/applications/QuarkusGettingStarted.java ! test/hotspot/jtreg/runtime/cds/appcds/applications/SpringPetClinic.java ! test/hotspot/jtreg/runtime/cds/appcds/leyden/CacheOnlyClassesIn.java ! test/hotspot/jtreg/runtime/cds/appcds/leyden/DynamicProxyTest.java ! test/hotspot/jtreg/runtime/cds/appcds/leyden/EndTrainingOnMethodEntry.java ! test/hotspot/jtreg/runtime/cds/appcds/leyden/EndTrainingWithAOTCacheMXBean.java ! test/hotspot/jtreg/runtime/cds/appcds/leyden/LeydenAndOldClasses.java ! test/hotspot/jtreg/runtime/cds/appcds/leyden/LeydenGCFlags.java - test/hotspot/jtreg/runtime/cds/appcds/leyden/LeydenHello.java ! test/hotspot/jtreg/runtime/cds/appcds/leyden/LeydenReflection.java ! test/lib/jdk/test/lib/cds/CDSAppTester.java From iklam at openjdk.org Fri Jul 11 15:46:52 2025 From: iklam at openjdk.org (Ioi Lam) Date: Fri, 11 Jul 2025 15:46:52 GMT Subject: git: openjdk/leyden: premain: [leyden] Do not enable -XX:AOTMode=on by default Message-ID: <9565a307-636b-41fe-908d-adbcf7cf180e@openjdk.org> Changeset: 14f7c1dc Branch: premain Author: Ioi Lam Date: 2025-07-11 15:44:46 +0000 URL: https://git.openjdk.org/leyden/commit/14f7c1dceda4e5189e772446a8293cd1ea87acb0 [leyden] Do not enable -XX:AOTMode=on by default Reviewed-by: shade ! src/hotspot/share/cds/cdsConfig.cpp ! test/hotspot/jtreg/runtime/cds/appcds/aotProfile/AOTProfileFlags.java From iklam at openjdk.org Fri Jul 11 15:47:56 2025 From: iklam at openjdk.org (Ioi Lam) Date: Fri, 11 Jul 2025 15:47:56 GMT Subject: Integrated: [leyden] Do not enable -XX:AOTMode=on by default In-Reply-To: References: Message-ID: On Fri, 27 Jun 2025 04:41:30 GMT, Ioi Lam wrote: > During early Leyden development, we decided to make `-XX:AOTMode=on` the default to make it easier to diagnose mismatches between training and production runs. However, this make it impossible to run the `make test JTREG=AOT_JDK...` tests: > > > $ make test JTREG=AOT_JDK=onestep TEST=open/test/hotspot/jtreg/runtime/invokedynamic > [...] > Running test 'jtreg:open/test/hotspot/jtreg/runtime/invokedynamic' > [0.010s][error][aot] An error has occurred while processing the AOT cache. Run with -Xlog:aot for details. > [0.010s][error][aot] Mismatched values for property jdk.module.addexports: java.base/jdk.internal.foreign=ALL-UNNAMED,java.base/jdk.internal.misc=ALL-UNNAMED specified during runtime but not during dump time > [0.010s][error][aot] Disabling optimized module handling > [0.010s][error][aot] AOT cache has aot-linked classes. It cannot be used when archived full module graph is not used. > [0.011s][error][aot] Unable to map shared spaces > failed to get JDK properties: > > > Now people should be familiar with using the AOT cache, so this nanny mode isn't necessary more. This pull request has now been integrated. Changeset: 14f7c1dc Author: Ioi Lam URL: https://git.openjdk.org/leyden/commit/14f7c1dceda4e5189e772446a8293cd1ea87acb0 Stats: 6 lines in 2 files changed: 0 ins; 5 del; 1 mod [leyden] Do not enable -XX:AOTMode=on by default Reviewed-by: shade ------------- PR: https://git.openjdk.org/leyden/pull/82