Skip to content

Commit f54b42d

Browse files
committed
Merge
2 parents 5e18837 + 79ccc79 commit f54b42d

File tree

306 files changed

+7072
-6233
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

306 files changed

+7072
-6233
lines changed

.github/workflows/build-cross-compile.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ jobs:
160160
--openjdk-target=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}
161161
--with-sysroot=sysroot
162162
--with-build-jdk=${{ steps.buildjdk.outputs.jdk-path }}
163+
--with-jmod-compress=zip-1
163164
CC=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-gcc-${{ inputs.gcc-major-version }}
164165
CXX=${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}}-g++-${{ inputs.gcc-major-version }}
165166
${{ inputs.extra-conf-options }} || (

.github/workflows/build-linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ jobs:
122122
--with-gtest=${{ steps.gtest.outputs.path }}
123123
--enable-jtreg-failure-handler
124124
--with-zlib=system
125+
--with-jmod-compress=zip-1
125126
${{ inputs.extra-conf-options }} || (
126127
echo "Dumping config.log:" &&
127128
cat config.log &&

.github/workflows/build-macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ jobs:
9797
--with-gtest=${{ steps.gtest.outputs.path }}
9898
--enable-jtreg-failure-handler
9999
--with-zlib=system
100+
--with-jmod-compress=zip-1
100101
${{ inputs.extra-conf-options }} || (
101102
echo "Dumping config.log:" &&
102103
cat config.log &&

.github/workflows/build-windows.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ jobs:
110110
--with-gtest=${{ steps.gtest.outputs.path }}
111111
--enable-jtreg-failure-handler
112112
--with-msvc-toolset-version=${{ inputs.msvc-toolset-version }}
113+
--with-jmod-compress=zip-1
113114
${{ inputs.extra-conf-options }} || (
114115
echo "Dumping config.log:" &&
115116
cat config.log &&

make/CreateJmods.gmk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,14 @@ ifeq ($(findstring $(MODULE), java.base java.desktop jdk.localedata), )
232232
JMOD_SMALL_FLAGS += $(JAVA_TOOL_FLAGS_SMALL)
233233
endif
234234

235+
ifeq ($(INTERIM_JMOD), true)
236+
# Interim JMODs are not shipped anywhere, so there is no reason
237+
# to compress them at all.
238+
JMOD_FLAGS += --compress zip-0
239+
else
240+
JMOD_FLAGS += --compress $(JMOD_COMPRESS)
241+
endif
242+
235243
# Create jmods in the support dir and then move them into place to keep the
236244
# module path in $(IMAGES_OUTPUTDIR)/jmods valid at all times.
237245
$(eval $(call SetupExecute, create_$(JMOD_FILE), \

make/Docs.gmk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ JAVADOC_TAGS := \
6969
-tag beaninfo:X \
7070
-tag revised:X \
7171
-tag since.unbundled:X \
72-
-tag spec:X \
73-
-tag specdefault:X \
7472
-tag Note:X \
7573
-tag ToDo:X \
7674
-tag 'apiNote:a:API Note:' \
@@ -86,6 +84,7 @@ JAVADOC_TAGS := \
8684
-tag since \
8785
-tag serialData \
8886
-tag factory \
87+
-tag spec \
8988
-tag see \
9089
-taglet build.tools.taglet.ExtLink \
9190
-taglet build.tools.taglet.Incubating \

make/RunTests.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ define SetupRunJtregTestBody
854854
-dir:$$(JTREG_TOPDIR) \
855855
-reportDir:$$($1_TEST_RESULTS_DIR) \
856856
-workDir:$$($1_TEST_SUPPORT_DIR) \
857-
-status:$$$${JTREG_STATUS} \
857+
$$$${JTREG_STATUS} \
858858
$$(JTREG_OPTIONS) \
859859
$$(JTREG_FAILURE_HANDLER_OPTIONS) \
860860
$$(JTREG_COV_OPTIONS) \

make/autoconf/configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ BASIC_SETUP_DEFAULT_LOG
133133
###############################################################################
134134

135135
# We need build & target for this.
136+
JDKOPT_SETUP_JMOD_OPTIONS
136137
JDKOPT_SETUP_JLINK_OPTIONS
137138
JDKVER_SETUP_JDK_VERSION_NUMBERS
138139

make/autoconf/jdk-options.m4

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,31 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_STATIC_BUILD],
472472
AC_SUBST(STATIC_BUILD)
473473
])
474474

475+
################################################################################
476+
#
477+
# jmod options.
478+
#
479+
AC_DEFUN_ONCE([JDKOPT_SETUP_JMOD_OPTIONS],
480+
[
481+
# Final JMODs are recompiled often during development, and java.base JMOD
482+
# includes the JVM libraries. In release mode, prefer to compress JMODs fully.
483+
# In debug mode, pay with a little extra space, but win a lot of CPU time back
484+
# with the lightest (but still some) compression.
485+
if test "x$DEBUG_LEVEL" = xrelease; then
486+
DEFAULT_JMOD_COMPRESS="zip-6"
487+
else
488+
DEFAULT_JMOD_COMPRESS="zip-1"
489+
fi
490+
491+
UTIL_ARG_WITH(NAME: jmod-compress, TYPE: literal,
492+
VALID_VALUES: [zip-0 zip-1 zip-2 zip-3 zip-4 zip-5 zip-6 zip-7 zip-8 zip-9],
493+
DEFAULT: $DEFAULT_JMOD_COMPRESS,
494+
CHECKING_MSG: [for JMOD compression type],
495+
DESC: [specify JMOD compression type (zip-[0-9])]
496+
)
497+
AC_SUBST(JMOD_COMPRESS)
498+
])
499+
475500
################################################################################
476501
#
477502
# jlink options.

make/autoconf/spec.gmk.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,7 @@ JAVADOC_MAIN_CLASS = -m jdk.javadoc.interim/jdk.javadoc.internal.tool.Main
702702
NEW_JAVAC = $(INTERIM_LANGTOOLS_ARGS) $(JAVAC_MAIN_CLASS)
703703
NEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) $(JAVADOC_MAIN_CLASS)
704704

705+
JMOD_COMPRESS:=@JMOD_COMPRESS@
705706
JLINK_KEEP_PACKAGED_MODULES:=@JLINK_KEEP_PACKAGED_MODULES@
706707

707708
RCFLAGS := @RCFLAGS@

0 commit comments

Comments
 (0)