@@ -650,6 +650,7 @@ TEST_JOBS
650650JOBS
651651MEMORY_SIZE
652652NUM_CORES
653+ ENABLE_GENERATE_CLASSLIST
653654BUILD_FAILURE_HANDLER
654655ENABLE_INTREE_EC
655656STLPORT_LIB
@@ -1226,6 +1227,7 @@ with_dxsdk
12261227with_dxsdk_lib
12271228with_dxsdk_include
12281229enable_jtreg_failure_handler
1230+ enable_generate_classlist
12291231with_num_cores
12301232with_memory_size
12311233with_jobs
@@ -2005,6 +2007,10 @@ Optional Features:
20052007 Default is auto, where the failure handler is built
20062008 if all dependencies are present and otherwise just
20072009 disabled.
2010+ --disable-generate-classlist
2011+ forces enabling or disabling of the generation of a
2012+ CDS classlist at build time. Default is to generate
2013+ it when either the server or client JVMs are built.
20082014 --enable-sjavac use sjavac to do fast incremental compiles
20092015 [disabled]
20102016 --disable-javac-server disable javac server [enabled]
@@ -4391,6 +4397,12 @@ VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom"
43914397#
43924398
43934399
4400+ ################################################################################
4401+ #
4402+ # Enable or disable generation of the classlist at build time
4403+ #
4404+
4405+
43944406#
43954407# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
43964408# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -5080,7 +5092,7 @@ VS_SDK_PLATFORM_NAME_2013=
50805092#CUSTOM_AUTOCONF_INCLUDE
50815093
50825094# Do not change or remove the following line, it is needed for consistency checks:
5083- DATE_WHEN_GENERATED=1463732692
5095+ DATE_WHEN_GENERATED=1464173584
50845096
50855097###############################################################################
50865098#
@@ -64812,6 +64824,51 @@ $as_echo "yes, jtreg present" >&6; }
6481264824
6481364825
6481464826
64827+ # Check whether --enable-generate-classlist was given.
64828+ if test "${enable_generate_classlist+set}" = set; then :
64829+ enableval=$enable_generate_classlist;
64830+ fi
64831+
64832+
64833+ # Check if it's likely that it's possible to generate the classlist. Depending
64834+ # on exact jvm configuration it could be possible anyway.
64835+ if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] ; then
64836+ ENABLE_GENERATE_CLASSLIST_POSSIBLE="true"
64837+ else
64838+ ENABLE_GENERATE_CLASSLIST_POSSIBLE="false"
64839+ fi
64840+
64841+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the CDS classlist generation should be enabled" >&5
64842+ $as_echo_n "checking if the CDS classlist generation should be enabled... " >&6; }
64843+ if test "x$enable_generate_classlist" = "xyes"; then
64844+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5
64845+ $as_echo "yes, forced" >&6; }
64846+ ENABLE_GENERATE_CLASSLIST="true"
64847+ if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then
64848+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS" >&5
64849+ $as_echo "$as_me: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS" >&2;}
64850+ fi
64851+ elif test "x$enable_generate_classlist" = "xno"; then
64852+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
64853+ $as_echo "no, forced" >&6; }
64854+ ENABLE_GENERATE_CLASSLIST="false"
64855+ elif test "x$enable_generate_classlist" = "x"; then
64856+ if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then
64857+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64858+ $as_echo "yes" >&6; }
64859+ ENABLE_GENERATE_CLASSLIST="true"
64860+ else
64861+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64862+ $as_echo "no" >&6; }
64863+ ENABLE_GENERATE_CLASSLIST="false"
64864+ fi
64865+ else
64866+ as_fn_error $? "Invalid value for --enable-generate-classlist: $enable_generate_classlist" "$LINENO" 5
64867+ fi
64868+
64869+
64870+
64871+
6481564872###############################################################################
6481664873#
6481764874# Configure parts of the build that only affect the build performance,
0 commit comments