RFR: 8255914: [AOT] Using AOT flag should give warning when AOT is not included in build

Vladimir Kozlov kvn at openjdk.java.net
Thu Nov 5 04:27:00 UTC 2020


Currently if AOT feature is not included in a build AOT flags specified on command line are silently ignored: 
$ java -XX:+UnlockExperimentalVMOptions -XX:+UseAOT -version 
java version "16-internal" 2021-03-16

It should give warning:

$ java -XX:+UnlockExperimentalVMOptions -XX:+UseAOT -version
Java HotSpot(TM) 64-Bit Server VM warning: -XX:+UseAOT not supported in this VM
java version "16-internal" 2021-03-16

-------------

Commit messages:
 - 8255914: [AOT] Using AOT flag should give warning when AOT is not included in build

Changes: https://git.openjdk.java.net/jdk/pull/1071/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1071&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8255914
  Stats: 28 lines in 2 files changed: 28 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1071.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1071/head:pull/1071

PR: https://git.openjdk.java.net/jdk/pull/1071


More information about the hotspot-runtime-dev mailing list