Skip to content

Commit 9be2ea5

Browse files
committed
Merge
2 parents 9d44914 + 78c18cf commit 9be2ea5

File tree

319 files changed

+7552
-6357
lines changed

Some content is hidden

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

319 files changed

+7552
-6357
lines changed

.github/actions/upload-bundles/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ inputs:
3232
debug-suffix:
3333
description: 'File name suffix denoting debug level, possibly empty'
3434
required: false
35+
bundle-suffix:
36+
description: 'Bundle name suffix, possibly empty'
37+
required: false
3538

3639
runs:
3740
using: composite
@@ -75,7 +78,7 @@ runs:
7578
- name: 'Upload bundles artifact'
7679
uses: actions/upload-artifact@v4
7780
with:
78-
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}
81+
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}${{ inputs.bundle-suffix }}
7982
path: bundles
8083
retention-days: 1
8184
if: steps.bundles.outputs.bundles-found == 'true'

.github/workflows/build-linux.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ on:
6161
make-arguments:
6262
required: false
6363
type: string
64+
bundle-suffix:
65+
required: false
66+
type: string
6467

6568
jobs:
6669
build-linux:
@@ -71,10 +74,6 @@ jobs:
7174
fail-fast: false
7275
matrix:
7376
debug-level: ${{ fromJSON(inputs.debug-levels) }}
74-
include:
75-
- debug-level: debug
76-
flags: --with-debug-level=fastdebug
77-
suffix: -debug
7877

7978
steps:
8079
- name: 'Checkout the JDK source'
@@ -118,7 +117,7 @@ jobs:
118117
run: >
119118
bash configure
120119
--with-conf-name=${{ inputs.platform }}
121-
${{ matrix.flags }}
120+
${{ matrix.debug-level == 'debug' && '--with-debug-level=fastdebug' || '' }}
122121
--with-version-opt=${GITHUB_ACTOR}-${GITHUB_SHA}
123122
--with-boot-jdk=${{ steps.bootjdk.outputs.path }}
124123
--with-jtreg=${{ steps.jtreg.outputs.path }}
@@ -133,17 +132,14 @@ jobs:
133132
- name: 'Build'
134133
id: build
135134
uses: ./.github/actions/do-build
136-
env:
137-
# Only build static-libs-bundles for release builds.
138-
# For debug builds, building static-libs often exceeds disk space.
139-
STATIC_LIBS: ${{ matrix.debug-level == 'release' && 'static-libs-bundles' }}
140135
with:
141-
make-target: '${{ inputs.make-target }} ${STATIC_LIBS} ${{ inputs.make-arguments }}'
136+
make-target: '${{ inputs.make-target }} ${{ inputs.make-arguments }}'
142137
platform: ${{ inputs.platform }}
143-
debug-suffix: '${{ matrix.suffix }}'
138+
debug-suffix: "${{ matrix.debug-level == 'debug' && '-debug' || '' }}"
144139

145140
- name: 'Upload bundles'
146141
uses: ./.github/actions/upload-bundles
147142
with:
148143
platform: ${{ inputs.platform }}
149-
debug-suffix: '${{ matrix.suffix }}'
144+
debug-suffix: "${{ matrix.debug-level == 'debug' && '-debug' || '' }}"
145+
bundle-suffix: ${{ inputs.bundle-suffix }}

.github/workflows/main.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,43 @@ jobs:
225225
make-arguments: ${{ github.event.inputs.make-arguments }}
226226
if: needs.prepare.outputs.linux-x64-variants == 'true'
227227

228+
build-linux-x64-static:
229+
name: linux-x64-static
230+
needs: prepare
231+
uses: ./.github/workflows/build-linux.yml
232+
with:
233+
platform: linux-x64
234+
make-target: 'static-jdk-image'
235+
# There are issues with fastdebug static build in GHA due to space limit.
236+
# Only do release build for now.
237+
debug-levels: '[ "release" ]'
238+
gcc-major-version: '10'
239+
configure-arguments: ${{ github.event.inputs.configure-arguments }}
240+
make-arguments: ${{ github.event.inputs.make-arguments }}
241+
# It currently doesn't produce any bundles, but probably will do in
242+
# the future.
243+
bundle-suffix: "-static"
244+
if: needs.prepare.outputs.linux-x64 == 'true'
245+
246+
build-linux-x64-static-libs:
247+
name: linux-x64-static-libs
248+
needs: prepare
249+
uses: ./.github/workflows/build-linux.yml
250+
with:
251+
platform: linux-x64
252+
make-target: 'static-libs-bundles'
253+
# Only build static-libs-bundles for release builds.
254+
# For debug builds, building static-libs often exceeds disk space.
255+
debug-levels: '[ "release" ]'
256+
gcc-major-version: '10'
257+
configure-arguments: ${{ github.event.inputs.configure-arguments }}
258+
make-arguments: ${{ github.event.inputs.make-arguments }}
259+
# Upload static libs bundles separately to avoid interference with normal linux-x64 bundle.
260+
# This bundle is not used by testing jobs, but downstreams use it to check that
261+
# dependent projects, e.g. libgraal, builds fine.
262+
bundle-suffix: "-static-libs"
263+
if: needs.prepare.outputs.linux-x64-variants == 'true'
264+
228265
build-linux-cross-compile:
229266
name: linux-cross-compile
230267
needs: prepare

make/Docs.gmk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ JAVA_WARNINGS_ARE_ERRORS ?= -Werror
9898

9999
# The initial set of options for javadoc
100100
JAVADOC_OPTIONS := -use -keywords -notimestamp \
101-
-encoding ISO-8859-1 -docencoding UTF-8 -breakiterator \
101+
-serialwarn -encoding ISO-8859-1 -docencoding UTF-8 -breakiterator \
102102
-splitIndex --system none -javafx --expand-requires transitive \
103103
--override-methods=summary
104104

105105
# The reference options must stay stable to allow for comparisons across the
106106
# development cycle.
107107
REFERENCE_OPTIONS := -XDignore.symbol.file=true -use -keywords -notimestamp \
108-
-encoding ISO-8859-1 -breakiterator -splitIndex --system none \
108+
-serialwarn -encoding ISO-8859-1 -breakiterator -splitIndex --system none \
109109
-html5 -javafx --expand-requires transitive
110110

111111
# Should we add DRAFT stamps to the generated javadoc?
@@ -673,7 +673,7 @@ ifeq ($(ENABLE_PANDOC), true)
673673

674674
$(foreach m, $(ALL_MODULES), \
675675
$(eval MAN_$m := $(call ApplySpecFilter, $(filter %.md, $(call FindFiles, \
676-
$(call FindModuleManDirs, $m))))) \
676+
$(call FindModuleManDirsForDocs, $m))))) \
677677
$(if $(MAN_$m), \
678678
$(eval $(call SetupProcessMarkdown, MAN_TO_HTML_$m, \
679679
FILES := $(MAN_$m), \

make/autoconf/flags-cflags.m4

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,11 +715,13 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
715715
if test "x$FLAGS_CPU" = xppc64; then
716716
# -mminimal-toc fixes `relocation truncated to fit' error for gcc 4.1.
717717
# Use ppc64 instructions, but schedule for power5
718-
$1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -mminimal-toc -mcpu=powerpc64 -mtune=power5"
718+
$1_CFLAGS_CPU="-mcpu=powerpc64 -mtune=power5"
719+
$1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -mminimal-toc"
719720
elif test "x$FLAGS_CPU" = xppc64le; then
720721
# Little endian machine uses ELFv2 ABI.
721722
# Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI.
722-
$1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -DABI_ELFv2 -mcpu=power8 -mtune=power10"
723+
$1_CFLAGS_CPU="-mcpu=power8 -mtune=power10"
724+
$1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -DABI_ELFv2"
723725
fi
724726
elif test "x$FLAGS_CPU" = xs390x; then
725727
$1_CFLAGS_CPU="-mbackchain -march=z10"

make/common/MakeIncludeEnd.gmk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ ifneq ($(NO_CUSTOM_EXTENSIONS), true)
3434
endif
3535

3636
# Pop our helper name off the stack
37-
HELPER_STACK := $(wordlist 2, $(words $(HELPER_STACK)), $(HELPER_STACK))
37+
INCLUDE_STACK := $(wordlist 2, $(words $(INCLUDE_STACK)), $(INCLUDE_STACK))
3838

3939
# Print an indented message, also counting the top-level makefile as a level
4040
ifeq ($(LOG_FLOW), true)
41-
$(info :$(foreach s, top $(HELPER_STACK), )Leave $(THIS_INCLUDE))
41+
$(info :$(foreach s, top $(INCLUDE_STACK) $(SNIPPET_STACK), )Leave $(THIS_INCLUDE))
4242
endif
4343

4444
# Restore the previous helper name
45-
THIS_INCLUDE := $(firstword $(HELPER_STACK))
45+
THIS_INCLUDE := $(firstword $(INCLUDE_STACK))

make/common/MakeIncludeStart.gmk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ else
3939
endif
4040

4141
ifeq ($(LOG_FLOW), true)
42-
$(info :$(foreach s, top $(HELPER_STACK), )Enter $(THIS_INCLUDE) [$(THIS_INCLUDE_MSG)])
42+
$(info :$(foreach s, top $(INCLUDE_STACK) $(SNIPPET_STACK), )Enter $(THIS_INCLUDE) [$(THIS_INCLUDE_MSG)])
4343
endif
4444

45-
ifneq ($(filter $(THIS_INCLUDE), $(HELPER_STACK)), )
46-
$(error Internal makefile error: Include loop detected: $(THIS_INCLUDE) $(HELPER_STACK))
45+
ifneq ($(filter $(THIS_INCLUDE), $(INCLUDE_STACK)), )
46+
$(error Internal makefile error: Include loop detected: $(THIS_INCLUDE) $(INCLUDE_STACK))
4747
endif
4848

4949
ifeq ($(words $(MAKEFILE_LIST)), 2)
@@ -66,7 +66,7 @@ ifneq ($(IS_PREINIT_ENV), true)
6666
endif
6767

6868
# Push our helper name onto the stack
69-
HELPER_STACK := $(THIS_INCLUDE) $(HELPER_STACK)
69+
INCLUDE_STACK := $(THIS_INCLUDE) $(INCLUDE_STACK)
7070

7171
# Setup an automatic include guard
7272
ifneq ($(INCLUDE_GUARD_$(THIS_INCLUDE)), true)

make/common/MakeSnippetEnd.gmk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ ifneq ($(NO_CUSTOM_EXTENSIONS), true)
3434
endif
3535

3636
# Pop our helper name off the stack
37-
HELPER_STACK := $(wordlist 2, $(words $(HELPER_STACK)), $(HELPER_STACK))
37+
SNIPPET_STACK := $(wordlist 2, $(words $(SNIPPET_STACK)), $(SNIPPET_STACK))
3838

3939
# Print an indented message, also counting the top-level makefile as a level
4040
ifeq ($(LOG_FLOW), true)
41-
$(info :$(foreach s, top $(HELPER_STACK), )Leave $(THIS_SNIPPET))
41+
$(info :$(foreach s, top $(INCLUDE_STACK) $(SNIPPET_STACK), )Leave $(THIS_SNIPPET))
4242
endif
4343

4444
# Restore the previous helper name
45-
THIS_SNIPPET := $(firstword $(HELPER_STACK))
45+
THIS_SNIPPET := $(firstword $(SNIPPET_STACK))

make/common/MakeSnippetStart.gmk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ endif
3333

3434
# Print an indented message, also counting the top-level makefile as a level
3535
ifeq ($(LOG_FLOW), true)
36-
$(info :$(foreach s, top $(HELPER_STACK), )Enter $(THIS_SNIPPET) [snippet])
36+
$(info :$(foreach s, top $(INCLUDE_STACK) $(SNIPPET_STACK), )Enter $(THIS_SNIPPET) [snippet])
3737
endif
3838

3939
# Push our helper name onto the stack
40-
HELPER_STACK := $(THIS_SNIPPET) $(HELPER_STACK)
40+
SNIPPET_STACK := $(THIS_SNIPPET) $(SNIPPET_STACK)
4141

4242
# Hook to include the corresponding custom file, if present.
4343
ifneq ($(NO_CUSTOM_EXTENSIONS), true)

make/common/Modules.gmk

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ SRC_SUBDIRS += share/classes
8787

8888
SPEC_SUBDIRS += share/specs
8989

90-
MAN_SUBDIRS += share/man windows/man
90+
MAN_SUBDIRS += share/man $(TARGET_OS)/man
91+
92+
# The docs should include the sum of all man pages for all platforms
93+
MAN_DOCS_SUBDIRS += share/man windows/man
9194

9295
# Find all module-info.java files for the current build target platform and
9396
# configuration.
@@ -153,6 +156,10 @@ FindModuleManDirs = \
153156
$(strip $(wildcard \
154157
$(foreach sub, $(MAN_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS)))))
155158

159+
FindModuleManDirsForDocs = \
160+
$(strip $(wildcard \
161+
$(foreach sub, $(MAN_DOCS_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS)))))
162+
156163
# Construct the complete module source path
157164
GetModuleSrcPath = \
158165
$(call PathList, \

0 commit comments

Comments
 (0)