Skip to content

Commit 8c7def3

Browse files
Merge tag 'jdk-24+27' into labsjdk/adopt-jdk-25+0-master
Added tag jdk-24+27 for changeset 85fedbf
2 parents 2ac6228 + 85fedbf commit 8c7def3

File tree

1,151 files changed

+67690
-15802
lines changed

Some content is hidden

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

1,151 files changed

+67690
-15802
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ on:
3636
platforms:
3737
description: 'Platform(s) to execute on (comma separated, e.g. "linux-x64, macos, aarch64")'
3838
required: true
39-
default: 'linux-x64, linux-x86-hs, linux-x64-variants, linux-cross-compile, alpine-linux-x64, macos-x64, macos-aarch64, windows-x64, windows-aarch64, docs'
39+
default: 'linux-x64, linux-x64-variants, linux-cross-compile, alpine-linux-x64, macos-x64, macos-aarch64, windows-x64, windows-aarch64, docs'
4040
configure-arguments:
4141
description: 'Additional configure arguments'
4242
required: false
@@ -62,7 +62,6 @@ jobs:
6262
EXCLUDED_PLATFORMS: 'alpine-linux-x64'
6363
outputs:
6464
linux-x64: ${{ steps.include.outputs.linux-x64 }}
65-
linux-x86-hs: ${{ steps.include.outputs.linux-x86-hs }}
6665
linux-x64-variants: ${{ steps.include.outputs.linux-x64-variants }}
6766
linux-cross-compile: ${{ steps.include.outputs.linux-cross-compile }}
6867
alpine-linux-x64: ${{ steps.include.outputs.alpine-linux-x64 }}
@@ -145,7 +144,6 @@ jobs:
145144
}
146145
147146
echo "linux-x64=$(check_platform linux-x64 linux x64)" >> $GITHUB_OUTPUT
148-
echo "linux-x86-hs=$(check_platform linux-x86-hs linux x86)" >> $GITHUB_OUTPUT
149147
echo "linux-x64-variants=$(check_platform linux-x64-variants variants)" >> $GITHUB_OUTPUT
150148
echo "linux-cross-compile=$(check_platform linux-cross-compile cross-compile)" >> $GITHUB_OUTPUT
151149
echo "alpine-linux-x64=$(check_platform alpine-linux-x64 alpine-linux x64)" >> $GITHUB_OUTPUT
@@ -170,24 +168,6 @@ jobs:
170168
make-arguments: ${{ github.event.inputs.make-arguments }}
171169
if: needs.prepare.outputs.linux-x64 == 'true'
172170

173-
build-linux-x86-hs:
174-
name: linux-x86-hs
175-
needs: prepare
176-
uses: ./.github/workflows/build-linux.yml
177-
with:
178-
platform: linux-x86
179-
make-target: 'hotspot'
180-
gcc-major-version: '10'
181-
gcc-package-suffix: '-multilib'
182-
apt-architecture: 'i386'
183-
# Some multilib libraries do not have proper inter-dependencies, so we have to
184-
# install their dependencies manually.
185-
apt-extra-packages: 'libfreetype-dev:i386 libtiff-dev:i386 libcupsimage2-dev:i386 libffi-dev:i386'
186-
extra-conf-options: '--with-target-bits=32 --enable-fallback-linker --enable-libffi-bundling'
187-
configure-arguments: ${{ github.event.inputs.configure-arguments }}
188-
make-arguments: ${{ github.event.inputs.make-arguments }}
189-
if: needs.prepare.outputs.linux-x86-hs == 'true'
190-
191171
build-linux-x64-hs-nopch:
192172
name: linux-x64-hs-nopch
193173
needs: prepare

doc/building.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ <h3 id="building-on-x86">Building on x86</h3>
329329
<p>Even for 32-bit builds, it is recommended to use a 64-bit build
330330
machine, and instead create a 32-bit target using
331331
<code>--with-target-bits=32</code>.</p>
332-
<p>Note: The Windows 32-bit x86 port is deprecated and may be removed in
333-
a future release.</p>
332+
<p>Note: The 32-bit x86 port is deprecated and may be removed in a
333+
future release.</p>
334334
<h3 id="building-on-aarch64">Building on aarch64</h3>
335335
<p>At a minimum, a machine with 8 cores is advisable, as well as 8 GB of
336336
RAM. (The more cores to use, the more memory you need.) At least 6 GB of
@@ -393,8 +393,7 @@ <h2 id="operating-system-requirements">Operating System
393393
to list successes or failures of building on different platforms.</p>
394394
<h3 id="windows">Windows</h3>
395395
<p>Windows XP is not a supported platform, but all newer Windows should
396-
be able to build the JDK. (Note: The Windows 32-bit x86 port is
397-
deprecated and may be removed in a future release.)</p>
396+
be able to build the JDK.</p>
398397
<p>On Windows, it is important that you pay attention to the
399398
instructions in the <a href="#special-considerations">Special
400399
Considerations</a>.</p>

doc/building.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ space is required.
134134
Even for 32-bit builds, it is recommended to use a 64-bit build machine, and
135135
instead create a 32-bit target using `--with-target-bits=32`.
136136

137-
Note: The Windows 32-bit x86 port is deprecated and may be removed in a future
138-
release.
137+
Note: The 32-bit x86 port is deprecated and may be removed in a future release.
139138

140139
### Building on aarch64
141140

@@ -191,8 +190,7 @@ on different platforms.
191190
### Windows
192191

193192
Windows XP is not a supported platform, but all newer Windows should be able to
194-
build the JDK. (Note: The Windows 32-bit x86 port is deprecated and may be
195-
removed in a future release.)
193+
build the JDK.
196194

197195
On Windows, it is important that you pay attention to the instructions in the
198196
[Special Considerations](#special-considerations).

make/Docs.gmk

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,13 @@ JAVA_WARNINGS_ARE_ERRORS ?= -Werror
107107
JAVADOC_OPTIONS := -use -keywords -notimestamp \
108108
-encoding ISO-8859-1 -docencoding UTF-8 -breakiterator \
109109
-splitIndex --system none -javafx --expand-requires transitive \
110-
--override-methods=summary \
111-
--no-external-specs-page
110+
--override-methods=summary
112111

113112
# The reference options must stay stable to allow for comparisons across the
114113
# development cycle.
115114
REFERENCE_OPTIONS := -XDignore.symbol.file=true -use -keywords -notimestamp \
116115
-encoding ISO-8859-1 -breakiterator -splitIndex --system none \
117-
-html5 -javafx --expand-requires transitive \
118-
--no-external-specs-page
116+
-html5 -javafx --expand-requires transitive
119117

120118
# Should we add DRAFT stamps to the generated javadoc?
121119
ifeq ($(VERSION_IS_GA), true)

make/Images.gmk

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -281,27 +281,6 @@ else
281281
endif
282282
CMDS_TARGET_SUBDIR := bin
283283

284-
# Param 1 - dir to find debuginfo files in
285-
FindDebuginfoFiles = \
286-
$(wildcard $(addprefix $1/*, $(DEBUGINFO_SUFFIXES)) \
287-
$(addprefix $1/*/*, $(DEBUGINFO_SUFFIXES)) \
288-
$(addprefix $1/*/*/*, $(DEBUGINFO_SUFFIXES)))
289-
290-
# Pick the correct debug info files to copy, either zipped or not.
291-
ifeq ($(ZIP_EXTERNAL_DEBUG_SYMBOLS), true)
292-
DEBUGINFO_SUFFIXES += .diz
293-
else
294-
DEBUGINFO_SUFFIXES := .debuginfo .pdb .map
295-
# On Macosx, if debug symbols have not been zipped, find all files inside *.dSYM
296-
# dirs.
297-
ifeq ($(call isTargetOs, macosx), true)
298-
$(call FillFindCache, \
299-
$(SUPPORT_OUTPUTDIR)/modules_libs $(SUPPORT_OUTPUTDIR)/modules_cmds)
300-
FindDebuginfoFiles = \
301-
$(if $(wildcard $1), $(call containing, .dSYM/, $(call FindFiles, $1)))
302-
endif
303-
endif
304-
305284
# Param 1 - either JDK or JRE
306285
SetupCopyDebuginfo = \
307286
$(foreach m, $(ALL_$1_MODULES), \

make/Main.gmk

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,18 @@ $(eval $(call SetupTarget, symbols-image, \
454454
TARGET := symbols, \
455455
))
456456

457+
$(eval $(call SetupTarget, static-launcher, \
458+
MAKEFILE := StaticLibs, \
459+
TARGET := static-launcher, \
460+
DEPS := hotspot-static-libs static-libs, \
461+
))
462+
463+
$(eval $(call SetupTarget, static-jdk-image, \
464+
MAKEFILE := StaticLibs, \
465+
TARGET := static-jdk-image, \
466+
DEPS := static-exploded-image jdk-image, \
467+
))
468+
457469
$(eval $(call SetupTarget, static-libs-image, \
458470
MAKEFILE := StaticLibsImage, \
459471
TARGET := static-libs-image, \
@@ -1086,9 +1098,9 @@ else
10861098

10871099
symbols-image: $(LIBS_TARGETS) $(LAUNCHER_TARGETS)
10881100

1089-
static-libs-image: hotspot-static-libs $(STATIC_LIBS_TARGETS)
1101+
static-libs-image: hotspot-static-libs static-libs
10901102

1091-
static-libs-graal-image: $(STATIC_LIBS_TARGETS)
1103+
static-libs-graal-image: static-libs
10921104

10931105
bootcycle-images: jdk-image
10941106

@@ -1254,6 +1266,8 @@ ifeq ($(call isTargetOs, macosx), true)
12541266
legacy-images: mac-legacy-jre-bundle
12551267
endif
12561268

1269+
static-exploded-image: static-launcher exploded-image
1270+
12571271
# These targets build the various documentation images
12581272
docs-jdk-image: docs-jdk
12591273
docs-javase-image: docs-javase
@@ -1296,7 +1310,7 @@ endif
12961310
################################################################################
12971311

12981312
# all-images builds all our deliverables as images.
1299-
all-images: product-images test-image all-docs-images
1313+
all-images: product-images static-jdk-image test-image all-docs-images
13001314

13011315
# all-bundles packages all our deliverables as tar.gz bundles.
13021316
all-bundles: product-bundles test-bundles docs-bundles static-libs-bundles
@@ -1309,7 +1323,7 @@ ALL_TARGETS += buildtools hotspot hotspot-libs hotspot-static-libs \
13091323
create-buildjdk docs-jdk-api docs-javase-api docs-reference-api docs-jdk \
13101324
docs-javase docs-reference docs-javadoc mac-bundles product-images legacy-images \
13111325
docs-image docs-javase-image docs-reference-image all-docs-images \
1312-
docs-bundles all-docs-bundles test-image all-images \
1326+
docs-bundles all-docs-bundles test-image all-images static-exploded-image \
13131327
all-bundles
13141328

13151329
################################################################################

make/ModuleWrapper.gmk

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -45,6 +45,23 @@ TARGETS :=
4545
# Include the file being wrapped.
4646
include $(MAKEFILE_PREFIX).gmk
4747

48+
ifeq ($(MAKEFILE_PREFIX), Lib)
49+
# We need to keep track of what libraries are generated/needed by this
50+
# module. This information is required when doing static linking, to know
51+
# which static library files to include. The variable $(MODULE)_INCLUDED_LIBS is
52+
# added to for each call to SetupJdkLibrary. The file module-included-libs.txt is then
53+
# read in StaticLibs.gmk.
54+
ifneq ($($(MODULE)_INCLUDED_LIBS), )
55+
LIBLIST := $(SUPPORT_OUTPUTDIR)/modules_static-libs/$(MODULE)/module-included-libs.txt
56+
57+
$(LIBLIST): $(TARGETS)
58+
$(call MakeDir, $(@D))
59+
$(ECHO) $($(MODULE)_INCLUDED_LIBS) > $@
60+
61+
TARGETS += $(LIBLIST)
62+
endif
63+
endif
64+
4865
# Setup copy rules from the modules directories to the jdk image directory.
4966
ifeq ($(call isTargetOs, windows), true)
5067
TO_BIN_FILTER := %$(SHARED_LIBRARY_SUFFIX) %.diz %.pdb %.map

0 commit comments

Comments
 (0)