RFR: 8349009: JVM fails to start when AOTClassLinking is used with unverifiable old classes
Vladimir Kozlov
kvn at openjdk.org
Thu Jan 30 03:17:46 UTC 2025
On Thu, 30 Jan 2025 02:40:10 GMT, Ioi Lam <iklam at openjdk.org> wrote:
> During the testing of [JDK-8348752](https://bugs.openjdk.org/browse/JDK-8348752), we notice test failures caused by unverifiable old classes (i.e., classes with bad instructions and major version < 50).
>
> The fix is simple. Simply exclude unlinked classes from the AOTCache when `-XX:+AOTClassLinking` is enabled.
>
> Verified with JCK.
test/hotspot/jtreg/runtime/cds/appcds/aotClassLinking/BadOldClassA.jasm line 4:
> 2: * Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved.
> 3: * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
> 4: */
Header in 2 new tests should be open one, I think.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23361#discussion_r1934952133
More information about the hotspot-runtime-dev
mailing list