Why do "Oracle JDK 10 builds" not support AppCDS?
mikhailo.seledtsov at oracle.com
Thu Feb 15 19:23:47 UTC 2018
I am not 100% sure, but I believe that UnlockCommercialFeatures is not
available in EA Oracle JDK builds, only in GA builds.
On 2/15/18, 11:16 AM, Volker Simonis wrote:
> But -XX:+UnlockCommercialFeatures doesn't work either:
> ./jre-10-ea+43/bin/java -XX:+UnlockCommercialFeatures -XX:+UseAppCDS -version
> Error: Trying to use 'UnlockCommercialFeatures', but commercial
> features are not available in this VM.
> So the commercial features don't seem to be available in the Oracle JDK 10 build
> On Thu, Feb 15, 2018 at 7:44 PM, Jiangli Zhou<jiangli.zhou at oracle.com> wrote:
>> Hi Volker,
>> This is intentional for JDK 10. According to the license of Oracle JDK 10,
>> the UseAppCDS option requires -XX:+UnlockCommercialFeatures. For OpenJDK,
>> UseAppCDS can be enabled without -XX:+UnlockCommercialFeatures. The
>> CDS/AppCDS functionality in both Oracle JDK 10 and OpenJDK 10 are identical.
>> On Feb 15, 2018, at 7:48 AM, Volker Simonis<volker.simonis at gmail.com>
>> I know that this is an OpenJDK mailing list but maybe this is still
>> interesting for some of us :)
>> I'm a little surprised to see that the "Oracle JDK 10" early access
>> builds from http://jdk.java.net/10 do not support AppCDS:
>> ./jre-10-ea+43/bin/java -version
>> java version "10" 2018-03-20
>> Java(TM) SE Runtime Environment 18.3 (build 10+43)
>> Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+43, mixed mode)
>> ./jre-10-ea+43/bin/java -XX:+UseAppCDS -version
>> Error: Trying to use 'UseAppCDS', but commercial features are not
>> available in this VM.
>> while the OpenJDK builds do support it:
>> ./jdk-10/bin/java -XX:+UseAppCDS -version
>> openjdk version "10" 2018-03-20
>> OpenJDK Runtime Environment 18.3 (build 10+43)
>> OpenJDK 64-Bit Server VM 18.3 (build 10+43, mixed mode)
>> Is this intentional or a mistake? I thought the goal was that Oracle
>> and OpenJDK builds should be the same apart from the license under
>> which they are provided. AppCDS is on the list of JEPs included in
>> OpenJDK 10 and it seems strange if some of them will not be in Oracle
>> JDK 10 (until now it was usually t he other way round :)
More information about the jdk-dev