Skip to content

Commit 6be8192

Browse files
[GR-54580] Merge in tag jdk-23+26.
PullRequest: labsjdk-ce/81
2 parents 193b069 + 40bf768 commit 6be8192

File tree

635 files changed

+17395
-8400
lines changed

Some content is hidden

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

635 files changed

+17395
-8400
lines changed

.jcheck/conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ warning=issuestitle
99

1010
[repository]
1111
tags=(?:jdk-(?:[1-9]([0-9]*)(?:\.(?:0|[1-9][0-9]*)){0,4})(?:\+(?:(?:[0-9]+))|(?:-ga)))|(?:jdk[4-9](?:u\d{1,3})?-(?:(?:b\d{2,3})|(?:ga)))|(?:hs\d\d(?:\.\d{1,2})?-b\d\d)
12-
branches=
12+
branches=.*
1313

1414
[census]
1515
version=0

make/BuildStatic.gmk

Lines changed: 0 additions & 54 deletions
This file was deleted.

make/Main.gmk

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,6 @@ $(eval $(call SetupTarget, buildtools-hotspot, \
9696
MAKEFILE := CompileToolsHotspot, \
9797
))
9898

99-
################################################################################
100-
# Special targets for certain modules
101-
102-
$(eval $(call SetupTarget, generate-exported-symbols, \
103-
MAKEFILE := BuildStatic, \
104-
DEPS := java.base-libs jdk.jdwp.agent-libs, \
105-
))
106-
10799
################################################################################
108100
# Gensrc targets, generating source before java compilation can be done
109101
#
@@ -905,10 +897,6 @@ else
905897

906898
$(LAUNCHER_TARGETS): java.base-libs
907899

908-
ifeq ($(STATIC_BUILD), true)
909-
$(LAUNCHER_TARGETS): generate-exported-symbols
910-
endif
911-
912900
# Declare dependency from <module>-java to <module>-gensrc
913901
$(foreach m, $(GENSRC_MODULES), $(eval $m-java: $m-gensrc))
914902

make/autoconf/flags-cflags.m4

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -641,11 +641,8 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
641641
JDK_PICFLAG="$PICFLAG"
642642
643643
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
644-
# Linking is different on MacOSX
645-
JDK_PICFLAG=''
646-
if test "x$STATIC_BUILD" = xtrue; then
647-
JVM_PICFLAG=""
648-
fi
644+
# Linking is different on macOS
645+
JVM_PICFLAG=""
649646
fi
650647
651648
# Extra flags needed when building optional static versions of certain

make/autoconf/jdk-options.m4

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,7 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_SYMBOLS],
267267
fi
268268
],
269269
[
270-
if test "x$STATIC_BUILD" = xtrue; then
271-
with_native_debug_symbols="none"
272-
else
273-
with_native_debug_symbols="external"
274-
fi
270+
with_native_debug_symbols="external"
275271
])
276272
AC_MSG_RESULT([$with_native_debug_symbols])
277273
@@ -543,24 +539,7 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_UNDEFINED_BEHAVIOR_SANITIZER],
543539
#
544540
AC_DEFUN_ONCE([JDKOPT_SETUP_STATIC_BUILD],
545541
[
546-
UTIL_ARG_ENABLE(NAME: static-build, DEFAULT: false, RESULT: STATIC_BUILD,
547-
DESC: [enable static library build],
548-
CHECKING_MSG: [if static build is enabled],
549-
CHECK_AVAILABLE: [
550-
AC_MSG_CHECKING([if static build is available])
551-
if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
552-
AC_MSG_RESULT([yes])
553-
else
554-
AC_MSG_RESULT([no])
555-
AVAILABLE=false
556-
fi
557-
],
558-
IF_ENABLED: [
559-
STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1"
560-
CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS"
561-
CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS"
562-
])
563-
AC_SUBST(STATIC_BUILD)
542+
UTIL_DEPRECATED_ARG_ENABLE(static-build)
564543
])
565544

566545
################################################################################

make/autoconf/jvm-features.m4

Lines changed: 2 additions & 19 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
@@ -46,7 +46,7 @@ m4_define(jvm_features_valid, m4_normalize( \
4646
\
4747
cds compiler1 compiler2 dtrace epsilongc g1gc jfr jni-check \
4848
jvmci jvmti link-time-opt management minimal opt-size parallelgc \
49-
serialgc services shenandoahgc static-build vm-structs zero zgc \
49+
serialgc services shenandoahgc vm-structs zero zgc \
5050
))
5151

5252
# Deprecated JVM features (these are ignored, but with a warning)
@@ -309,22 +309,6 @@ AC_DEFUN_ONCE([JVM_FEATURES_CHECK_SHENANDOAHGC],
309309
])
310310
])
311311

312-
###############################################################################
313-
# Check if the feature 'static-build' is available on this platform.
314-
#
315-
AC_DEFUN_ONCE([JVM_FEATURES_CHECK_STATIC_BUILD],
316-
[
317-
JVM_FEATURES_CHECK_AVAILABILITY(static-build, [
318-
AC_MSG_CHECKING([if static-build is enabled in configure])
319-
if test "x$STATIC_BUILD" = "xtrue"; then
320-
AC_MSG_RESULT([yes])
321-
else
322-
AC_MSG_RESULT([no, use --enable-static-build to enable static build.])
323-
AVAILABLE=false
324-
fi
325-
])
326-
])
327-
328312
###############################################################################
329313
# Check if the feature 'zgc' is available on this platform.
330314
#
@@ -395,7 +379,6 @@ AC_DEFUN_ONCE([JVM_FEATURES_PREPARE_PLATFORM],
395379
JVM_FEATURES_CHECK_DTRACE
396380
JVM_FEATURES_CHECK_JVMCI
397381
JVM_FEATURES_CHECK_SHENANDOAHGC
398-
JVM_FEATURES_CHECK_STATIC_BUILD
399382
JVM_FEATURES_CHECK_ZGC
400383
401384
])

make/autoconf/lib-hsdis.m4

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2021, 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
@@ -268,14 +268,16 @@ AC_DEFUN([LIB_SETUP_HSDIS_BINUTILS],
268268
disasm_header="\"$BINUTILS_INSTALL_DIR/include/dis-asm.h\""
269269
if test -e $BINUTILS_INSTALL_DIR/lib/libbfd.a && \
270270
test -e $BINUTILS_INSTALL_DIR/lib/libopcodes.a && \
271-
(test -e $BINUTILS_INSTALL_DIR/lib/libiberty.a || test -e $BINUTILS_INSTALL_DIR/lib64/libiberty.a); then
271+
(test -e $BINUTILS_INSTALL_DIR/lib/libiberty.a || test -e $BINUTILS_INSTALL_DIR/lib64/libiberty.a || test -e $BINUTILS_INSTALL_DIR/lib32/libiberty.a); then
272272
HSDIS_CFLAGS="-DLIBARCH_$OPENJDK_TARGET_CPU_LEGACY_LIB -I$BINUTILS_INSTALL_DIR/include"
273273
274-
# libiberty ignores --libdir and may be installed in $BINUTILS_INSTALL_DIR/lib or $BINUTILS_INSTALL_DIR/lib64
275-
# depending on system setup
274+
# libiberty ignores --libdir and may be installed in $BINUTILS_INSTALL_DIR/lib, $BINUTILS_INSTALL_DIR/lib32
275+
# or $BINUTILS_INSTALL_DIR/lib64, depending on system setup
276276
LIBIBERTY_LIB=""
277277
if test -e $BINUTILS_INSTALL_DIR/lib/libiberty.a; then
278278
LIBIBERTY_LIB="$BINUTILS_INSTALL_DIR/lib/libiberty.a"
279+
elif test -e $BINUTILS_INSTALL_DIR/lib32/libiberty.a; then
280+
LIBIBERTY_LIB="$BINUTILS_INSTALL_DIR/lib32/libiberty.a"
279281
else
280282
LIBIBERTY_LIB="$BINUTILS_INSTALL_DIR/lib64/libiberty.a"
281283
fi

make/autoconf/spec.gmk.template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,6 @@ SHARED_LIBRARY_SUFFIX := @SHARED_LIBRARY_SUFFIX@
632632
STATIC_LIBRARY_SUFFIX := @STATIC_LIBRARY_SUFFIX@
633633
EXECUTABLE_SUFFIX := @EXECUTABLE_SUFFIX@
634634
OBJ_SUFFIX := @OBJ_SUFFIX@
635-
STATIC_BUILD := @STATIC_BUILD@
636635

637636
STRIPFLAGS := @STRIPFLAGS@
638637

make/autoconf/toolchain.m4

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -178,23 +178,14 @@ AC_DEFUN([TOOLCHAIN_SETUP_FILENAME_PATTERNS],
178178
EXECUTABLE_SUFFIX='.exe'
179179
else
180180
LIBRARY_PREFIX=lib
181-
SHARED_LIBRARY_SUFFIX='.so'
181+
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
182+
SHARED_LIBRARY_SUFFIX='.dylib'
183+
else
184+
SHARED_LIBRARY_SUFFIX='.so'
185+
fi
182186
STATIC_LIBRARY_SUFFIX='.a'
183187
OBJ_SUFFIX='.o'
184188
EXECUTABLE_SUFFIX=''
185-
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
186-
# For full static builds, we're overloading the shared library suffix
187-
# in order to limit the amount of changes required.
188-
# It would be better to remove SHARED and just use LIBRARY and
189-
# LIBRARY_SUFFIX for libraries that can be built either
190-
# shared or static and use STATIC_* for libraries that are
191-
# always built statically.
192-
if test "x$STATIC_BUILD" = xtrue; then
193-
SHARED_LIBRARY_SUFFIX='.a'
194-
else
195-
SHARED_LIBRARY_SUFFIX='.dylib'
196-
fi
197-
fi
198189
fi
199190
200191
AC_SUBST(LIBRARY_PREFIX)

make/common/JdkNativeCompilation.gmk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,6 @@ define AddJdkLibrary
194194
endif
195195

196196
# Determine if the library in question is static.
197-
ifeq ($(STATIC_BUILD), true)
198-
$1_$2_STATIC_LIBRARY := true
199-
endif
200197
# Ideally, we should not hardcode these
201198
ifeq ($(call isTargetOs, aix)+$$($1_$2_MODULE):$$($1_$2_NAME), true+java.base:jli)
202199
$1_$2_STATIC_LIBRARY := true

0 commit comments

Comments
 (0)