< prev index next >
test/hotspot/jtreg/compiler/aot/scripts/test-jaotc.sh
Print this page
@@ -1,6 +1,6 @@
-# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
@@ -24,11 +24,11 @@
popd > /dev/null
# set env variables
. $DIR/test-env.sh
-JAOTC_OPTS="-J-Xmx4g -J-XX:-UseCompressedOops"
+JAOTC_OPTS="-J-Xmx4g -J-XX:-UseCompressedOops -J-XX:+UnlockExperimentalVMOptions"
rm -f libjdk.aot.$SO_TYPE
$JAVA_HOME/bin/jaotc $JAOTC_OPTS --info --module jdk.aot --output libjdk.aot.$SO_TYPE || exit 1
@@ -36,8 +36,8 @@
$JAVA_HOME/bin/jaotc $JAOTC_OPTS -J-XX:AOTLibrary=./libjdk.aot.$SO_TYPE --info --compile-commands $DIR/java.base-list.txt --output libjava.base-aot.$SO_TYPE --module java.base || exit 1
$JAVA_HOME/bin/javac -d . $DIR/HelloWorld.java
-$JAVA_HOME/bin/java -XX:-UseCompressedOops -XX:AOTLibrary=./libjava.base-aot.$SO_TYPE HelloWorld
+$JAVA_HOME/bin/java -XX:-UseCompressedOops -XX:+UnlockExperimentalVMOptions -XX:AOTLibrary=./libjava.base-aot.$SO_TYPE HelloWorld
rm -f HelloWorld.class libjdk.aot.$SO_TYPE libjava.base-aot.$SO_TYPE
< prev index next >