BootstrapMethods attribute is missing in class files recreated by SA (serviceability agent) using dumpclass or buildreplayjars command. The class files thus generated are not valid if there is a Dynamic or InvokeDynamic constant pool entry. Such classes cannot be used for replay compilation.
Class attribute are written by ClassWriter https://github.com/openjdk/jdk/blob/8aad881e803fddc26f45270f779ff0c0e5a095d8/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/jcore/ClassWriter.java#L665.
Class attribute are written by ClassWriter https://github.com/openjdk/jdk/blob/8aad881e803fddc26f45270f779ff0c0e5a095d8/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/jcore/ClassWriter.java#L665.
- relates to
-
JDK-8242152 SA does not include StackMapTables when dumping .class files
- Resolved
-
JDK-8315648 Add test for JDK-8309979 changes
- Resolved