-
Sub-task
-
Resolution: Unresolved
-
P3
-
25
If using `-XX:+UseCompactObjectHeaders` with a custom image created with `jlink`, an additional step is needed to create the CDS archives for this configuration. After creating the image, do:
```<image>/bin/java -XX:+UseCompactObjectHeaders -Xshare:dump```
to create the classes_coh.jsa file. In the unlikely case that you wish to use `UseCompactObjectHeaders` without `UseCompressedOops`, also create a CDS archive image by:
```<image>/bin/java -XX:+UseCompactObjectHeaders -XX:-UseCompressedOops -Xshare:dump```
```<image>/bin/java -XX:+UseCompactObjectHeaders -Xshare:dump```
to create the classes_coh.jsa file. In the unlikely case that you wish to use `UseCompactObjectHeaders` without `UseCompressedOops`, also create a CDS archive image by:
```<image>/bin/java -XX:+UseCompactObjectHeaders -XX:-UseCompressedOops -Xshare:dump```