8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
25
26 # All valid JVM features, regardless of platform
27 VALID_JVM_FEATURES="compiler1 compiler2 zero minimal dtrace jvmti jvmci \
28 graal vm-structs jni-check services management cmsgc g1gc parallelgc serialgc nmt cds \
29 static-build link-time-opt aot jfr"
30
31 # All valid JVM variants
32 VALID_JVM_VARIANTS="server client minimal core zero custom"
33
34 ###############################################################################
35 # Check if the specified JVM variant should be built. To be used in shell if
36 # constructs, like this:
37 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
38 #
39 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
40
41 # Definition kept in one line to allow inlining in if statements.
42 # Additional [] needed to keep m4 from mangling shell constructs.
43 AC_DEFUN([HOTSPOT_CHECK_JVM_VARIANT],
44 [ [ [[ " $JVM_VARIANTS " =~ " $1 " ]] ] ])
45
46 ###############################################################################
47 # Check if the specified JVM features are explicitly enabled. To be used in
48 # shell if constructs, like this:
379 AC_MSG_RESULT([yes])
380 fi
381 JVM_FEATURES_aot="aot"
382 else
383 if test "x$enable_aot" = "xno"; then
384 AC_MSG_RESULT([no, forced])
385 else
386 AC_MSG_RESULT([no])
387 fi
388 JVM_FEATURES_aot=""
389 fi
390
391 if test "x$OPENJDK_TARGET_CPU" = xarm ; then
392 # Default to use link time optimizations on minimal on arm
393 JVM_FEATURES_link_time_opt="link-time-opt"
394 else
395 JVM_FEATURES_link_time_opt=""
396 fi
397
398 # All variants but minimal (and custom) get these features
399 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cmsgc g1gc parallelgc serialgc jni-check jvmti management nmt services vm-structs"
400 if test "x$ENABLE_CDS" = "xtrue"; then
401 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cds"
402 fi
403
404 # Enable features depending on variant.
405 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal"
406 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci"
407 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES"
408 JVM_FEATURES_minimal="compiler1 minimal serialgc $JVM_FEATURES $JVM_FEATURES_link_time_opt"
409 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES"
410 JVM_FEATURES_custom="$JVM_FEATURES"
411
412 AC_SUBST(JVM_FEATURES_server)
413 AC_SUBST(JVM_FEATURES_client)
414 AC_SUBST(JVM_FEATURES_core)
415 AC_SUBST(JVM_FEATURES_minimal)
416 AC_SUBST(JVM_FEATURES_zero)
417 AC_SUBST(JVM_FEATURES_custom)
418
419 # Used for verification of Makefiles by check-jvm-feature
|
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
25
26 # All valid JVM features, regardless of platform
27 VALID_JVM_FEATURES="compiler1 compiler2 zero minimal dtrace jvmti jvmci \
28 graal vm-structs jni-check services management cmsgc g1gc parallelgc serialgc epsilongc nmt cds \
29 static-build link-time-opt aot jfr"
30
31 # All valid JVM variants
32 VALID_JVM_VARIANTS="server client minimal core zero custom"
33
34 ###############################################################################
35 # Check if the specified JVM variant should be built. To be used in shell if
36 # constructs, like this:
37 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
38 #
39 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
40
41 # Definition kept in one line to allow inlining in if statements.
42 # Additional [] needed to keep m4 from mangling shell constructs.
43 AC_DEFUN([HOTSPOT_CHECK_JVM_VARIANT],
44 [ [ [[ " $JVM_VARIANTS " =~ " $1 " ]] ] ])
45
46 ###############################################################################
47 # Check if the specified JVM features are explicitly enabled. To be used in
48 # shell if constructs, like this:
379 AC_MSG_RESULT([yes])
380 fi
381 JVM_FEATURES_aot="aot"
382 else
383 if test "x$enable_aot" = "xno"; then
384 AC_MSG_RESULT([no, forced])
385 else
386 AC_MSG_RESULT([no])
387 fi
388 JVM_FEATURES_aot=""
389 fi
390
391 if test "x$OPENJDK_TARGET_CPU" = xarm ; then
392 # Default to use link time optimizations on minimal on arm
393 JVM_FEATURES_link_time_opt="link-time-opt"
394 else
395 JVM_FEATURES_link_time_opt=""
396 fi
397
398 # All variants but minimal (and custom) get these features
399 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cmsgc g1gc parallelgc serialgc epsilongc jni-check jvmti management nmt services vm-structs"
400 if test "x$ENABLE_CDS" = "xtrue"; then
401 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cds"
402 fi
403
404 # Enable features depending on variant.
405 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal"
406 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci"
407 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES"
408 JVM_FEATURES_minimal="compiler1 minimal serialgc $JVM_FEATURES $JVM_FEATURES_link_time_opt"
409 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES"
410 JVM_FEATURES_custom="$JVM_FEATURES"
411
412 AC_SUBST(JVM_FEATURES_server)
413 AC_SUBST(JVM_FEATURES_client)
414 AC_SUBST(JVM_FEATURES_core)
415 AC_SUBST(JVM_FEATURES_minimal)
416 AC_SUBST(JVM_FEATURES_zero)
417 AC_SUBST(JVM_FEATURES_custom)
418
419 # Used for verification of Makefiles by check-jvm-feature
|