Skip to content

Commit 8f36a1d

Browse files
committed
Merge
2 parents da3e94b + cb3f968 commit 8f36a1d

File tree

278 files changed

+6927
-2239
lines changed

Some content is hidden

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

278 files changed

+6927
-2239
lines changed

.github/actions/get-bootjdk/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2022, 2023, 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
@@ -104,6 +104,6 @@ runs:
104104
- name: 'Export path to where BootJDK is installed'
105105
id: path-name
106106
run: |
107-
# Export the path
108-
echo 'path=bootjdk/jdk' >> $GITHUB_OUTPUT
107+
# Export the absolute path
108+
echo "path=`pwd`/bootjdk/jdk" >> $GITHUB_OUTPUT
109109
shell: bash

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ jobs:
111111
g++-${{ inputs.gcc-major-version }} \
112112
gcc-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}} \
113113
g++-${{ inputs.gcc-major-version }}-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-abi}} \
114-
libxrandr-dev libxtst-dev libcups2-dev libasound2-dev \
115-
debian-ports-archive-keyring
114+
libxrandr-dev libxtst-dev libcups2-dev libasound2-dev
116115
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ inputs.gcc-major-version }} 100 --slave /usr/bin/g++ g++ /usr/bin/g++-${{ inputs.gcc-major-version }}
117116
118117
- name: 'Check cache for sysroot'
@@ -134,7 +133,6 @@ jobs:
134133
--include=fakeroot,symlinks,build-essential,libx11-dev,libxext-dev,libxrender-dev,libxrandr-dev,libxtst-dev,libxt-dev,libcups2-dev,libfontconfig1-dev,libasound2-dev,libfreetype-dev,libpng-dev
135134
--resolve-deps
136135
--variant=minbase
137-
$(test -n "${{ matrix.debian-keyring }}" && echo "--keyring=${{ matrix.debian-keyring }}")
138136
${{ matrix.debian-version }}
139137
sysroot
140138
${{ matrix.debian-repository }}

make/Bundles.gmk

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,27 @@ endif
478478

479479
################################################################################
480480

481+
ifneq ($(filter static-libs-graal-bundles, $(MAKECMDGOALS)), )
482+
STATIC_LIBS_GRAAL_BUNDLE_FILES := $(call FindFiles, $(STATIC_LIBS_GRAAL_IMAGE_DIR))
483+
484+
ifeq ($(OPENJDK_TARGET_OS)-$(DEBUG_LEVEL), macosx-release)
485+
STATIC_LIBS_GRAAL_BUNDLE_SUBDIR := $(JDK_MACOSX_CONTENTS_SUBDIR)/Home
486+
else
487+
STATIC_LIBS_GRAAL_BUNDLE_SUBDIR := $(JDK_BUNDLE_SUBDIR)
488+
endif
489+
490+
$(eval $(call SetupBundleFile, BUILD_STATIC_LIBS_GRAAL_BUNDLE, \
491+
BUNDLE_NAME := $(STATIC_LIBS_GRAAL_BUNDLE_NAME), \
492+
FILES := $(STATIC_LIBS_GRAAL_BUNDLE_FILES), \
493+
BASE_DIRS := $(STATIC_LIBS_GRAAL_IMAGE_DIR), \
494+
SUBDIR := $(STATIC_LIBS_GRAAL_BUNDLE_SUBDIR), \
495+
))
496+
497+
STATIC_LIBS_GRAAL_TARGETS += $(BUILD_STATIC_LIBS_GRAAL_BUNDLE)
498+
endif
499+
500+
################################################################################
501+
481502
# Hook to include the corresponding custom file, if present.
482503
$(eval $(call IncludeCustomExtension, Bundles.gmk))
483504

@@ -490,8 +511,9 @@ docs-jdk-bundles: $(DOCS_JDK_TARGETS)
490511
docs-javase-bundles: $(DOCS_JAVASE_TARGETS)
491512
docs-reference-bundles: $(DOCS_REFERENCE_TARGETS)
492513
static-libs-bundles: $(STATIC_LIBS_TARGETS)
514+
static-libs-graal-bundles: $(STATIC_LIBS_GRAAL_TARGETS)
493515
jcov-bundles: $(JCOV_TARGETS)
494516

495517
.PHONY: all default product-bundles test-bundles \
496518
docs-jdk-bundles docs-javase-bundles docs-reference-bundles \
497-
static-libs-bundles jcov-bundles
519+
static-libs-bundles static-libs-graal-bundles jcov-bundles

make/Docs.gmk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ MODULES_SOURCE_PATH := $(call PathList, $(call GetModuleSrcPath) )
6666
# In order to get a specific ordering it's necessary to specify the total
6767
# ordering of tags as the tags are otherwise ordered in order of definition.
6868
JAVADOC_TAGS := \
69-
-tag beaninfo:X \
70-
-tag since.unbundled:X \
71-
-tag Note:X \
72-
-tag ToDo:X \
7369
-tag 'apiNote:a:API Note:' \
7470
-tag 'implSpec:a:Implementation Requirements:' \
7571
-tag 'implNote:a:Implementation Note:' \

make/Main.gmk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,12 @@ $(eval $(call SetupTarget, static-libs-bundles, \
851851
DEPS := static-libs-image, \
852852
))
853853

854+
$(eval $(call SetupTarget, static-libs-graal-bundles, \
855+
MAKEFILE := Bundles, \
856+
TARGET := static-libs-graal-bundles, \
857+
DEPS := static-libs-graal-image, \
858+
))
859+
854860
ifeq ($(JCOV_ENABLED), true)
855861
$(eval $(call SetupTarget, jcov-bundles, \
856862
MAKEFILE := Bundles, \

make/ToolsJdk.gmk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,7 @@ PANDOC_HTML_MANPAGE_FILTER := $(BUILDTOOLS_OUTPUTDIR)/manpages/pandoc-html-manpa
137137

138138
##########################################################################################
139139

140+
# Hook to include the corresponding custom post file, if present.
141+
$(eval $(call IncludeCustomExtension, ToolsJdk-post.gmk))
142+
140143
endif # _TOOLS_GMK

make/autoconf/build-performance.m4

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,11 @@ AC_DEFUN([BPERF_SETUP_CCACHE_USAGE],
243243
fi
244244
fi
245245
246+
# The CCACHE_BASEDIR needs to end with '/' as ccache will otherwise think
247+
# directories next to it, that have the base dir name as a prefix, are sub
248+
# directories of CCACHE_BASEDIR.
246249
CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \
247-
CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE"
250+
CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$WORKSPACE_ROOT/ $CCACHE"
248251
249252
if test "x$SET_CCACHE_DIR" != x; then
250253
mkdir -p $CCACHE_DIR > /dev/null 2>&1

make/autoconf/flags-ldflags.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
6060
# Add -z,defs, to forbid undefined symbols in object files.
6161
# add -z,relro (mark relocations read only) for all libs
6262
# add -z,now ("full relro" - more of the Global Offset Table GOT is marked read only)
63-
BASIC_LDFLAGS="-Wl,-z,defs -Wl,-z,relro -Wl,-z,now"
63+
# add --no-as-needed to disable default --as-needed link flag on some GCC toolchains
64+
BASIC_LDFLAGS="-Wl,-z,defs -Wl,-z,relro -Wl,-z,now -Wl,--no-as-needed"
6465
# Linux : remove unused code+data in link step
6566
if test "x$ENABLE_LINKTIME_GC" = xtrue; then
6667
if test "x$OPENJDK_TARGET_CPU" = xs390x; then

make/autoconf/platform.m4

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,6 @@ AC_DEFUN([PLATFORM_SETUP_LEGACY_VARS_HELPER],
582582
HOTSPOT_$1_CPU_DEFINE=PPC64
583583
elif test "x$OPENJDK_$1_CPU" = xppc64le; then
584584
HOTSPOT_$1_CPU_DEFINE=PPC64
585-
elif test "x$OPENJDK_$1_CPU" = xriscv32; then
586-
HOTSPOT_$1_CPU_DEFINE=RISCV32
587585
elif test "x$OPENJDK_$1_CPU" = xriscv64; then
588586
HOTSPOT_$1_CPU_DEFINE=RISCV64
589587
elif test "x$OPENJDK_$1_CPU" = xloongarch64; then
@@ -594,10 +592,14 @@ AC_DEFUN([PLATFORM_SETUP_LEGACY_VARS_HELPER],
594592
HOTSPOT_$1_CPU_DEFINE=SPARC
595593
elif test "x$OPENJDK_$1_CPU" = xppc; then
596594
HOTSPOT_$1_CPU_DEFINE=PPC32
595+
elif test "x$OPENJDK_$1_CPU" = xriscv32; then
596+
HOTSPOT_$1_CPU_DEFINE=RISCV32
597597
elif test "x$OPENJDK_$1_CPU" = xs390; then
598598
HOTSPOT_$1_CPU_DEFINE=S390
599599
elif test "x$OPENJDK_$1_CPU" = xs390x; then
600600
HOTSPOT_$1_CPU_DEFINE=S390
601+
elif test "x$OPENJDK_$1_CPU" = xloongarch64; then
602+
HOTSPOT_$1_CPU_DEFINE=LOONGARCH64
601603
elif test "x$OPENJDK_$1_CPU" != x; then
602604
HOTSPOT_$1_CPU_DEFINE=$(echo $OPENJDK_$1_CPU | tr a-z A-Z)
603605
fi

make/autoconf/spec.gmk.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,7 @@ DOCS_JDK_BUNDLE_NAME := jdk-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
984984
DOCS_JAVASE_BUNDLE_NAME := javase-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
985985
DOCS_REFERENCE_BUNDLE_NAME := jdk-reference-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
986986
STATIC_LIBS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-static-libs$(DEBUG_PART).tar.gz
987+
STATIC_LIBS_GRAAL_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-static-libs-graal$(DEBUG_PART).tar.gz
987988
JCOV_BUNDLE_NAME := jdk-jcov-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
988989

989990
JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_BUNDLE_NAME)

0 commit comments

Comments
 (0)