-
Bug
-
Resolution: Fixed
-
P2
-
24, 25
-
master
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8349249 | 24.0.1 | Ioi Lam | P2 | Resolved | Fixed | master |
JDK-8349085 | 24 | Ioi Lam | P2 | Resolved | Fixed | b35 |
If an application runs with an AOTCache produced with -XX:+AOTClassLinking, and the app contains code like this, where BadOldClassA is below version 50, and
Class c = BadOldClassA.class;
Object n = new Object();
if (c.isInstance(n)) {
throw new RuntimeException("Must not succeed");
}
The application will fail during JVM bootstrap:
[0.225s][error][cds ] java.lang.VerifyError: (class: BadOldClassA, method: doit signature: ()Ljava/lang/String;) Wrong return type in function
Error occurred during initialization of VM
Unexpected exception when loading aot-linked classes.
=============================
Work-around: use -XX:-AOTClassLinking if your application contains unverifiable classes (or don't run such applications!)
Class c = BadOldClassA.class;
Object n = new Object();
if (c.isInstance(n)) {
throw new RuntimeException("Must not succeed");
}
The application will fail during JVM bootstrap:
[0.225s][error][cds ] java.lang.VerifyError: (class: BadOldClassA, method: doit signature: ()Ljava/lang/String;) Wrong return type in function
Error occurred during initialization of VM
Unexpected exception when loading aot-linked classes.
=============================
Work-around: use -XX:-AOTClassLinking if your application contains unverifiable classes (or don't run such applications!)
- backported by
-
JDK-8349085 JVM fails to start when AOTClassLinking is used with unverifiable old classes
- Resolved
-
JDK-8349249 JVM fails to start when AOTClassLinking is used with unverifiable old classes
- Resolved
- relates to
-
JDK-8348752 Enable -XX:+AOTClassLinking by default when -XX:AOTMode is specified
- Resolved
- links to
-
Commit(jdk24) openjdk/jdk/89c46f11
-
Commit(master) openjdk/jdk/1ac2d6e0
-
Review(jdk24) openjdk/jdk/23372
-
Review(master) openjdk/jdk/23361
(2 links to)