Skip to content

Commit 6e64c68

Browse files
author
Datadog Syncup Service
committed
Merge branch 'upstream-master'
2 parents 4c7f7b6 + a08d67c commit 6e64c68

File tree

2,257 files changed

+14599
-71057
lines changed

Some content is hidden

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

2,257 files changed

+14599
-71057
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ jobs:
284284
with:
285285
platform: macos-aarch64
286286
runs-on: 'macos-14'
287-
xcode-toolset-version: '14.3.1'
287+
xcode-toolset-version: '15.4'
288288
configure-arguments: ${{ github.event.inputs.configure-arguments }}
289289
make-arguments: ${{ github.event.inputs.make-arguments }}
290290
if: needs.prepare.outputs.macos-aarch64 == 'true'
@@ -354,6 +354,7 @@ jobs:
354354
platform: macos-x64
355355
bootjdk-platform: macos-x64
356356
runs-on: macos-13
357+
xcode-toolset-version: '14.3.1'
357358

358359
test-macos-aarch64:
359360
name: macos-aarch64
@@ -364,6 +365,7 @@ jobs:
364365
platform: macos-aarch64
365366
bootjdk-platform: macos-aarch64
366367
runs-on: macos-14
368+
xcode-toolset-version: '15.4'
367369

368370
test-windows-x64:
369371
name: windows-x64

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ on:
3737
runs-on:
3838
required: true
3939
type: string
40+
xcode-toolset-version:
41+
required: false
42+
type: string
4043

4144
env:
4245
# These are needed to make the MSYS2 bash work properly
@@ -147,7 +150,7 @@ jobs:
147150
run: |
148151
# On macOS we need to install some dependencies for testing
149152
brew install make
150-
sudo xcode-select --switch /Applications/Xcode_14.3.1.app/Contents/Developer
153+
sudo xcode-select --switch /Applications/Xcode_${{ inputs.xcode-toolset-version }}.app/Contents/Developer
151154
# This will make GNU make available as 'make' and not only as 'gmake'
152155
echo '/usr/local/opt/make/libexec/gnubin' >> $GITHUB_PATH
153156
if: runner.os == 'macOS'

make/autoconf/basic.m4

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ AC_DEFUN_ONCE([BASIC_SETUP_PATHS],
7676
fi
7777
7878
if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
79+
if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then
80+
AC_MSG_ERROR([32-bit Windows builds are not supported])
81+
fi
7982
BASIC_SETUP_PATHS_WINDOWS
8083
fi
8184

make/autoconf/flags-ldflags.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
7474
# Clang needs the lld linker to work correctly
7575
BASIC_LDFLAGS="-fuse-ld=lld -Wl,--exclude-libs,ALL"
7676
if test "x$CXX_IS_USER_SUPPLIED" = xfalse && test "x$CC_IS_USER_SUPPLIED" = xfalse; then
77-
UTIL_REQUIRE_PROGS(LLD, lld)
77+
UTIL_REQUIRE_PROGS(LLD, lld, $TOOLCHAIN_PATH:$PATH)
7878
fi
7979
fi
8080
if test "x$OPENJDK_TARGET_OS" = xaix; then

make/autoconf/platform.m4

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 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
@@ -666,14 +666,14 @@ AC_DEFUN([PLATFORM_CHECK_DEPRECATION],
666666
[
667667
AC_ARG_ENABLE(deprecated-ports, [AS_HELP_STRING([--enable-deprecated-ports@<:@=yes/no@:>@],
668668
[Suppress the error when configuring for a deprecated port @<:@no@:>@])])
669-
if test "x$OPENJDK_TARGET_OS" = xwindows && test "x$OPENJDK_TARGET_CPU" = xx86; then
670-
if test "x$enable_deprecated_ports" = "xyes"; then
671-
AC_MSG_WARN([The Windows 32-bit x86 port is deprecated and may be removed in a future release.])
672-
else
673-
AC_MSG_ERROR(m4_normalize([The Windows 32-bit x86 port is deprecated and may be removed in a future release.
674-
Use --enable-deprecated-ports=yes to suppress this error.]))
675-
fi
676-
fi
669+
# if test "x$OPENJDK_TARGET_CPU" = xx86; then
670+
# if test "x$enable_deprecated_ports" = "xyes"; then
671+
# AC_MSG_WARN([The x86 port is deprecated and may be removed in a future release.])
672+
# else
673+
# AC_MSG_ERROR(m4_normalize([The 32-bit x86 port is deprecated and may be removed in a future release.
674+
# Use --enable-deprecated-ports=yes to suppress this error.]))
675+
# fi
676+
# fi
677677
])
678678

679679
AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_OS_VERSION],

make/autoconf/toolchain_microsoft.m4

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 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
@@ -82,9 +82,7 @@ AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT],
8282
fi
8383
8484
AC_MSG_NOTICE([Found Visual Studio installation at $VS_BASE using $METHOD])
85-
if test "x$TARGET_CPU" = xx86; then
86-
VCVARSFILES="vcvars32.bat vcvarsamd64_x86.bat"
87-
elif test "x$TARGET_CPU" = xx86_64; then
85+
if test "x$TARGET_CPU" = xx86_64; then
8886
VCVARSFILES="vcvars64.bat vcvarsx86_amd64.bat"
8987
elif test "x$TARGET_CPU" = xaarch64; then
9088
# for host x86-64, target aarch64
@@ -132,9 +130,7 @@ AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT],
132130
elif test -f "$WIN_SDK_BASE/bin/setenv.cmd"; then
133131
AC_MSG_NOTICE([Found Windows SDK installation at $WIN_SDK_BASE using $METHOD])
134132
VS_ENV_CMD="$WIN_SDK_BASE/bin/setenv.cmd"
135-
if test "x$TARGET_CPU" = xx86; then
136-
VS_ENV_ARGS="/x86"
137-
elif test "x$TARGET_CPU" = xx86_64; then
133+
if test "x$TARGET_CPU" = xx86_64; then
138134
VS_ENV_ARGS="/x64"
139135
elif test "x$TARGET_CPU" = xaarch64; then
140136
VS_ENV_ARGS="/arm64"
@@ -438,9 +434,7 @@ AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_MSVC_DLL],
438434
# Need to check if the found msvcr is correct architecture
439435
AC_MSG_CHECKING([found $DLL_NAME architecture])
440436
MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"`
441-
if test "x$OPENJDK_TARGET_CPU" = xx86; then
442-
CORRECT_MSVCR_ARCH=386
443-
elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
437+
if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
444438
CORRECT_MSVCR_ARCH=x86-64
445439
elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
446440
# The cygwin 'file' command only returns "PE32+ executable (DLL) (console), for MS Windows",
@@ -466,9 +460,7 @@ AC_DEFUN([TOOLCHAIN_SETUP_MSVC_DLL],
466460
DLL_HELP="$2"
467461
MSVC_DLL=
468462
469-
if test "x$OPENJDK_TARGET_CPU" = xx86; then
470-
vs_target_cpu=x86
471-
elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
463+
if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
472464
vs_target_cpu=x64
473465
elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
474466
vs_target_cpu=arm64
@@ -522,18 +514,8 @@ AC_DEFUN([TOOLCHAIN_SETUP_MSVC_DLL],
522514
# Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now.
523515
# (This was the original behaviour; kept since it might turn something up)
524516
if test "x$VCINSTALLDIR" != x; then
525-
if test "x$OPENJDK_TARGET_CPU" = xx86; then
526-
POSSIBLE_MSVC_DLL=`$FIND "$VCINSTALLDIR" -name $DLL_NAME \
527-
| $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $GREP -v arm64 | $HEAD --lines 1`
528-
if test "x$POSSIBLE_MSVC_DLL" = x; then
529-
# We're grasping at straws now...
530-
POSSIBLE_MSVC_DLL=`$FIND "$VCINSTALLDIR" -name $DLL_NAME \
531-
| $HEAD --lines 1`
532-
fi
533-
else
534-
POSSIBLE_MSVC_DLL=`$FIND "$VCINSTALLDIR" -name $DLL_NAME \
535-
| $GREP x64 | $HEAD --lines 1`
536-
fi
517+
POSSIBLE_MSVC_DLL=`$FIND "$VCINSTALLDIR" -name $DLL_NAME \
518+
| $GREP x64 | $HEAD --lines 1`
537519
538520
TOOLCHAIN_CHECK_POSSIBLE_MSVC_DLL([$DLL_NAME], [$POSSIBLE_MSVC_DLL],
539521
[search of VCINSTALLDIR])

make/hotspot/gensrc/GensrcAdlc.gmk

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,7 @@ ifeq ($(call check-jvm-feature, compiler2), true)
109109
ADLCFLAGS += -DR18_RESERVED
110110
endif
111111
else ifeq ($(call isTargetOs, windows), true)
112-
ifeq ($(call isTargetCpuBits, 64), true)
113-
ADLCFLAGS += -D_WIN64=1
114-
endif
112+
ADLCFLAGS += -D_WIN64=1
115113
ifeq ($(HOTSPOT_TARGET_CPU_ARCH), aarch64)
116114
ADLCFLAGS += -DR18_RESERVED
117115
endif

make/modules/java.base/Copy.gmk

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -123,46 +123,6 @@ TARGETS += $(JVMCFG)
123123

124124
################################################################################
125125

126-
POLICY_SRC := $(TOPDIR)/src/java.base/share/conf/security/java.policy
127-
POLICY_DST := $(CONF_DST_DIR)/security/java.policy
128-
129-
POLICY_SRC_LIST := $(POLICY_SRC)
130-
131-
$(POLICY_DST): $(POLICY_SRC_LIST)
132-
$(call MakeTargetDir)
133-
134-
$(foreach f, $(POLICY_SRC_LIST), $(CAT) $(f) >> [email protected];)
135-
136-
137-
TARGETS += $(POLICY_DST)
138-
139-
################################################################################
140-
141-
DEF_POLICY_SRC := $(TOPDIR)/src/java.base/share/lib/security/default.policy
142-
DEF_POLICY_DST := $(LIB_DST_DIR)/security/default.policy
143-
144-
DEF_POLICY_SRC_LIST := $(DEF_POLICY_SRC)
145-
DEF_POLICY_SRC_LIST += $(CUSTOM_POLICY_SRC_LIST)
146-
147-
ifeq ($(call isTargetOs, windows), true)
148-
DEF_POLICY_SRC_LIST += $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/lib/security/default.policy
149-
endif
150-
151-
# Allow imported modules to modify the java.policy
152-
ifneq ($(IMPORT_MODULES_CONF), )
153-
DEF_POLICY_SRC_LIST += $(wildcard $(IMPORT_MODULES_CONF)/java.base/security/java.policy.extra)
154-
endif
155-
156-
$(DEF_POLICY_DST): $(DEF_POLICY_SRC_LIST)
157-
$(call MakeTargetDir)
158-
159-
$(foreach f, $(DEF_POLICY_SRC_LIST), $(CAT) $(f) >> [email protected];)
160-
161-
162-
TARGETS += $(DEF_POLICY_DST)
163-
164-
################################################################################
165-
166126
# CACERTS_FILE is optionally set in configure to override the default cacerts
167127
# which is otherwise generated in Gendata-java.base.gmk
168128
CACERTS_DST := $(LIB_DST_DIR)/security/cacerts

make/modules/java.desktop/lib/AwtLibraries.gmk

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,7 @@ LIBAWT_EXTRA_HEADER_DIRS := \
8585
LIBAWT_CFLAGS := -D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES -DMLIB_NO_LIBSUNMATH
8686

8787
ifeq ($(call isTargetOs, windows), true)
88-
LIBAWT_CFLAGS += -EHsc -DUNICODE -D_UNICODE
89-
ifeq ($(call isTargetCpuBits, 64), true)
90-
LIBAWT_CFLAGS += -DMLIB_OS64BIT
91-
endif
92-
88+
LIBAWT_CFLAGS += -EHsc -DUNICODE -D_UNICODE -DMLIB_OS64BIT
9389
LIBAWT_RCFLAGS ?= -I$(TOPDIR)/src/java.base/windows/native/launcher/icons
9490
LIBAWT_VERSIONINFO_RESOURCE := \
9591
$(TOPDIR)/src/$(MODULE)/windows/native/libawt/windows/awt.rc

make/modules/java.rmi/Launcher.gmk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,4 @@ include LauncherCommon.gmk
3131

3232
$(eval $(call SetupBuildLauncher, rmiregistry, \
3333
MAIN_CLASS := sun.rmi.registry.RegistryImpl, \
34-
JAVA_ARGS := -Djava.security.manager=allow, \
3534
))

0 commit comments

Comments
 (0)