Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[openj9-dev] Shared classes enabled by default

As has already been done for jdk11 builds, in preparation for the 0.12.0 release, shared classes for bootstrap classes has been enabled by default in jdk8 builds. This also changes the default location of the shared cache [1], similarly to jdk11. Note the `-Xshareclasses:cacheDir=<dir>` option can be used to modify the directory containing the cache [2].

Shared classes are now enabled for all platforms but macOS, which will be enabled at a later time. Prior to the 0.12.0 release, the change takes effect from the next nightly builds at https://adoptopenjdk.net/. Until the User Guide is updated for the 0.12.0 release, see the details in [3].

As always, best practice is for any application explicitly enabling -Xshareclasses to specify a cache name via `-Xshareclasses:name=<cache name>` [4]. Note only the last `-Xshareclasses` option on the command line is used, a single `-Xshareclasses:<options>` must be used to specify all the parameters.

[1] https://www.eclipse.org/openj9/docs/version0.11/#changes-to-the-location-of-the-default-shared-cache-and-cache-snapshot-directory
[2] https://www.eclipse.org/openj9/docs/xshareclasses/#cachedir
[3] https://github.com/eclipse/openj9-docs/issues/110
[4] https://www.eclipse.org/openj9/docs/xshareclasses/#name


Regards,

Peter Shipton


Back to the top