-
Bug
-
Resolution: Fixed
-
P4
-
16
-
b16
$ echo 'public class HelloWorld { public static void main(String args[]) { System.out.println("Hello World"); }}' > HelloWorld.java
$ javac HelloWorld.java
$ jar cvf HelloWorld.jar HelloWorld.class
$ java -XX:DumpLoadedClassList=HelloWorld.classlist -cp HelloWorld.jar HelloWorld
$ java -Xlog:cds -Xshare:dump -XX:SharedClassListFile=HelloWorld.classlist -cp HelloWorld.jar -XX:SharedArchiveFile=HelloWorld.jsa
$ java -XX:SharedArchiveFile=HelloWorld.jsa -cp HelloWorld.jar -verbose HelloWorld | grep jrt:
[0.036s][info][class,load] java.util.jar.Attributes source: jrt:/java.base
[0.036s][info][class,load] java.util.LinkedHashMap source: jrt:/java.base
[0.036s][info][class,load] java.util.jar.Manifest$FastInputStream source: jrt:/java.base
$ javac HelloWorld.java
$ jar cvf HelloWorld.jar HelloWorld.class
$ java -XX:DumpLoadedClassList=HelloWorld.classlist -cp HelloWorld.jar HelloWorld
$ java -Xlog:cds -Xshare:dump -XX:SharedClassListFile=HelloWorld.classlist -cp HelloWorld.jar -XX:SharedArchiveFile=HelloWorld.jsa
$ java -XX:SharedArchiveFile=HelloWorld.jsa -cp HelloWorld.jar -verbose HelloWorld | grep jrt:
[0.036s][info][class,load] java.util.jar.Attributes source: jrt:/java.base
[0.036s][info][class,load] java.util.LinkedHashMap source: jrt:/java.base
[0.036s][info][class,load] java.util.jar.Manifest$FastInputStream source: jrt:/java.base
- relates to
-
JDK-8253084 Zero VM is broken after JDK-8252689
- Resolved
-
JDK-8324259 Classes used by CDS at runtime should be archived
- Resolved