< prev index next >

make/autoconf/hotspot.m4

Print this page
rev 48545 : Value-based classes (vbc) / Oop value test via metadata ptr
   1 #
   2 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   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 all-gcs 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:
  49 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then


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


   1 #
   2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   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 all-gcs nmt cds \
  29     static-build link-time-opt aot vbc"
  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:
  49 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then


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


< prev index next >