< prev index next >

make/autoconf/hotspot.m4

Print this page




   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 # Deprecated JVM features (these are ignored, but with a warning)
  32 DEPRECATED_JVM_FEATURES="trace"
  33 
  34 # All valid JVM variants
  35 VALID_JVM_VARIANTS="server client minimal core zero custom"
  36 
  37 ###############################################################################
  38 # Check if the specified JVM variant should be built. To be used in shell if
  39 # constructs, like this:
  40 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
  41 #
  42 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
  43 
  44 # Definition kept in one line to allow inlining in if statements.
  45 # Additional [] needed to keep m4 from mangling shell constructs.
  46 AC_DEFUN([HOTSPOT_CHECK_JVM_VARIANT],
  47 [ [ [[ " $JVM_VARIANTS " =~ " $1 " ]] ] ])
  48 


 393       AC_MSG_RESULT([yes])
 394     fi
 395     JVM_FEATURES_aot="aot"
 396   else
 397     if test "x$enable_aot" = "xno"; then
 398       AC_MSG_RESULT([no, forced])
 399     else
 400       AC_MSG_RESULT([no])
 401     fi
 402     JVM_FEATURES_aot=""
 403   fi
 404 
 405   if test "x$OPENJDK_TARGET_CPU" = xarm ; then
 406     # Default to use link time optimizations on minimal on arm
 407     JVM_FEATURES_link_time_opt="link-time-opt"
 408   else
 409     JVM_FEATURES_link_time_opt=""
 410   fi
 411 
 412   # All variants but minimal (and custom) get these features
 413   NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cmsgc g1gc parallelgc serialgc jni-check jvmti management nmt services vm-structs"
 414   if test "x$ENABLE_CDS" = "xtrue"; then
 415     NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cds"
 416   fi
 417 
 418   # Enable features depending on variant.
 419   JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal"
 420   JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci"
 421   JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES"
 422   JVM_FEATURES_minimal="compiler1 minimal serialgc $JVM_FEATURES $JVM_FEATURES_link_time_opt"
 423   JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES"
 424   JVM_FEATURES_custom="$JVM_FEATURES"
 425 
 426   AC_SUBST(JVM_FEATURES_server)
 427   AC_SUBST(JVM_FEATURES_client)
 428   AC_SUBST(JVM_FEATURES_core)
 429   AC_SUBST(JVM_FEATURES_minimal)
 430   AC_SUBST(JVM_FEATURES_zero)
 431   AC_SUBST(JVM_FEATURES_custom)
 432 
 433   # 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 # Deprecated JVM features (these are ignored, but with a warning)
  32 DEPRECATED_JVM_FEATURES="trace"
  33 
  34 # All valid JVM variants
  35 VALID_JVM_VARIANTS="server client minimal core zero custom"
  36 
  37 ###############################################################################
  38 # Check if the specified JVM variant should be built. To be used in shell if
  39 # constructs, like this:
  40 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
  41 #
  42 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
  43 
  44 # Definition kept in one line to allow inlining in if statements.
  45 # Additional [] needed to keep m4 from mangling shell constructs.
  46 AC_DEFUN([HOTSPOT_CHECK_JVM_VARIANT],
  47 [ [ [[ " $JVM_VARIANTS " =~ " $1 " ]] ] ])
  48 


 393       AC_MSG_RESULT([yes])
 394     fi
 395     JVM_FEATURES_aot="aot"
 396   else
 397     if test "x$enable_aot" = "xno"; then
 398       AC_MSG_RESULT([no, forced])
 399     else
 400       AC_MSG_RESULT([no])
 401     fi
 402     JVM_FEATURES_aot=""
 403   fi
 404 
 405   if test "x$OPENJDK_TARGET_CPU" = xarm ; then
 406     # Default to use link time optimizations on minimal on arm
 407     JVM_FEATURES_link_time_opt="link-time-opt"
 408   else
 409     JVM_FEATURES_link_time_opt=""
 410   fi
 411 
 412   # All variants but minimal (and custom) get these features
 413   NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cmsgc g1gc parallelgc serialgc epsilongc jni-check jvmti management nmt services vm-structs"
 414   if test "x$ENABLE_CDS" = "xtrue"; then
 415     NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cds"
 416   fi
 417 
 418   # Enable features depending on variant.
 419   JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal"
 420   JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci"
 421   JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES"
 422   JVM_FEATURES_minimal="compiler1 minimal serialgc $JVM_FEATURES $JVM_FEATURES_link_time_opt"
 423   JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES"
 424   JVM_FEATURES_custom="$JVM_FEATURES"
 425 
 426   AC_SUBST(JVM_FEATURES_server)
 427   AC_SUBST(JVM_FEATURES_client)
 428   AC_SUBST(JVM_FEATURES_core)
 429   AC_SUBST(JVM_FEATURES_minimal)
 430   AC_SUBST(JVM_FEATURES_zero)
 431   AC_SUBST(JVM_FEATURES_custom)
 432 
 433   # Used for verification of Makefiles by check-jvm-feature


< prev index next >