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"
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:
374 AC_MSG_RESULT([yes])
375 fi
376 JVM_FEATURES_aot="aot"
377 else
378 if test "x$enable_aot" = "xno"; then
379 AC_MSG_RESULT([no, forced])
380 else
381 AC_MSG_RESULT([no])
382 fi
383 JVM_FEATURES_aot=""
384 fi
385
386 if test "x$OPENJDK_TARGET_CPU" = xarm ; then
387 # Default to use link time optimizations on minimal on arm
388 JVM_FEATURES_link_time_opt="link-time-opt"
389 else
390 JVM_FEATURES_link_time_opt=""
391 fi
392
393 # All variants but minimal (and custom) get these features
394 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cmsgc g1gc parallelgc serialgc jni-check jvmti management nmt services vm-structs"
395 if test "x$ENABLE_CDS" = "xtrue"; then
396 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cds"
397 fi
398
399 # Enable default features depending on variant.
400 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal"
401 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci"
402 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES"
403 JVM_FEATURES_minimal="compiler1 minimal serialgc $JVM_FEATURES $JVM_FEATURES_link_time_opt"
404 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES"
405 JVM_FEATURES_custom="$JVM_FEATURES"
406
407 AC_SUBST(JVM_FEATURES_server)
408 AC_SUBST(JVM_FEATURES_client)
409 AC_SUBST(JVM_FEATURES_core)
410 AC_SUBST(JVM_FEATURES_minimal)
411 AC_SUBST(JVM_FEATURES_zero)
412 AC_SUBST(JVM_FEATURES_custom)
413
414 # 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"
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:
374 AC_MSG_RESULT([yes])
375 fi
376 JVM_FEATURES_aot="aot"
377 else
378 if test "x$enable_aot" = "xno"; then
379 AC_MSG_RESULT([no, forced])
380 else
381 AC_MSG_RESULT([no])
382 fi
383 JVM_FEATURES_aot=""
384 fi
385
386 if test "x$OPENJDK_TARGET_CPU" = xarm ; then
387 # Default to use link time optimizations on minimal on arm
388 JVM_FEATURES_link_time_opt="link-time-opt"
389 else
390 JVM_FEATURES_link_time_opt=""
391 fi
392
393 # All variants but minimal (and custom) get these features
394 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cmsgc g1gc parallelgc serialgc epsilongc jni-check jvmti management nmt services vm-structs"
395 if test "x$ENABLE_CDS" = "xtrue"; then
396 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cds"
397 fi
398
399 # Enable default features depending on variant.
400 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal"
401 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci"
402 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES"
403 JVM_FEATURES_minimal="compiler1 minimal serialgc $JVM_FEATURES $JVM_FEATURES_link_time_opt"
404 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES"
405 JVM_FEATURES_custom="$JVM_FEATURES"
406
407 AC_SUBST(JVM_FEATURES_server)
408 AC_SUBST(JVM_FEATURES_client)
409 AC_SUBST(JVM_FEATURES_core)
410 AC_SUBST(JVM_FEATURES_minimal)
411 AC_SUBST(JVM_FEATURES_zero)
412 AC_SUBST(JVM_FEATURES_custom)
413
414 # Used for verification of Makefiles by check-jvm-feature
|