JDK-8191927 : Enable AppCDS for custom loaders on all 64-bit Linux and AIX
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 10
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-11-27
  • Updated: 2018-02-15
  • Resolved: 2017-11-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 10
10 b36Fixed
Related Reports
Relates :  
Relates :  
Description
Per Volker Simonis <volker.simonis@gmail.com>:

I've finished my testing on Linux/ppc64, Linux/ppc64le, Linux/s390 and
AIX. All the tests passed successfully (with the corresponding extra
ppc/s390 patches currently under review).

I did run the tests with the following add-on to your change, which
enables AppCDS with custom class loaders on all 64-bit Linux, Solaris
and AIX platforms:

http://cr.openjdk.java.net/~simonis/webrevs/2017/8188791-open-appcds.v02.tests-addon/

The only change required in HotSpot is in "classListParser.cpp" to
enable the feature on the named platforms. The other changes just
enable the additional tests on all 64-bit Linux, Solaris and AIX
platforms.

Comments
Thanks to Volkers for contributed the patch. I've updated it to use "@requires vm.cds.custom.loaders" to simplify the logic: http://cr.openjdk.java.net/~iklam/jdk10/8191927-appcds-custom-loader-for-more-platforms.v01/
27-11-2017