mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8305753: Allow JIT compilation for -Xshare:dump
Reviewed-by: dholmes, matsaave, ccheung
This commit is contained in:
parent
728b858c78
commit
08f79148c6
4 changed files with 36 additions and 10 deletions
|
@ -5069,6 +5069,18 @@ The output of this command should contain the following text:
|
|||
\f[V][info][class,load] test.Hello source: shared objects file\f[R]
|
||||
.RE
|
||||
.RE
|
||||
.PP
|
||||
By default, when the \f[V]-Xshare:dump\f[R] option is used, the JVM runs
|
||||
in interpreter-only mode (as if the \f[V]-Xint\f[R] option were
|
||||
specified).
|
||||
This is required for generating deterministic output in the shared
|
||||
archive file.
|
||||
I.e., the exact same archive will be generated, bit-for-bit, every time
|
||||
you dump it.
|
||||
However, if deterministic output is not needed, and you have a large
|
||||
classlist, you can explicitly add \f[V]-Xmixed\f[R] to the command-line
|
||||
to enable the JIT compiler.
|
||||
This will speed up the archive creation.
|
||||
.SS Creating a Dynamic CDS Archive File with -XX:ArchiveClassesAtExit
|
||||
.PP
|
||||
Advantages of dynamic CDS archives are:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue