jsa

Is the Java code saved in a Class Data Sharing archive (classes.jsa) compiled natively or is it bytecode?

非 Y 不嫁゛ 提交于 2019-12-09 17:28:02
问题 I'm trying to know whether creating a Class Data Sharing archive (by running java -Xshare:dump ) compiles byte code into native code. There is not a lot of documentation about the internals of Class Data Sharing. The page I linked says that java -Xshare:dump loads a set of classes from the system jar file into a private internal representation, and dumps that representation to a file. But says nothing about whether this code is compiled or not. (Possibly related: Speed up application start by

Is the Java code saved in a Class Data Sharing archive (classes.jsa) compiled natively or is it bytecode?

爱⌒轻易说出口 提交于 2019-12-04 04:03:13
I'm trying to know whether creating a Class Data Sharing archive (by running java -Xshare:dump ) compiles byte code into native code. There is not a lot of documentation about the internals of Class Data Sharing. The page I linked says that java -Xshare:dump loads a set of classes from the system jar file into a private internal representation, and dumps that representation to a file. But says nothing about whether this code is compiled or not. (Possibly related: Speed up application start by adding own application classes to classes.jsa ) In both cases it's native code in the cache (see the

Speed up application start by adding own application classes to classes.jsa

可紊 提交于 2019-11-28 05:46:50
To speed up the startup time of the JVM, the Sun developers decided it is a good idea to precompile the standard runtime classes for a platform during installation of the JVM. These precompiled classes can be found e.g. at: $JAVA_HOME\jre\bin\client\classes.jsa My company currently develops a Java standalone application which brings its own JRE, so it would be a fantastic option to speed up our application start time by adding our own application classes to this jsa file, too. I don't believe the JSA file was created by magic, so: How is it created? And how can I trick the JVM into

Speed up application start by adding own application classes to classes.jsa

匆匆过客 提交于 2019-11-27 01:09:01
问题 To speed up the startup time of the JVM, the Sun developers decided it is a good idea to precompile the standard runtime classes for a platform during installation of the JVM. These precompiled classes can be found e.g. at: $JAVA_HOME\jre\bin\client\classes.jsa My company currently develops a Java standalone application which brings its own JRE, so it would be a fantastic option to speed up our application start time by adding our own application classes to this jsa file, too. I don't believe