Skip to content

Commit 4526c4e

Browse files
authored
Merge pull request #2226 from SAP/pr-jdk-25.0.4+1
Merge to tag jdk-25.0.4+1
2 parents 8ef3761 + 15a6641 commit 4526c4e

578 files changed

Lines changed: 19495 additions & 7249 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,3 @@ NashornProfile.txt
2323
/.gdbinit
2424
/.lldbinit
2525
**/core.[0-9]*
26-
*.rej
27-
*.orig

.jcheck/conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[general]
22
project=jdk-updates
33
jbs=JDK
4-
version=25.0.3
4+
version=25.0.4
55

66
[checks]
77
error=author,committer,reviewers,merge,issues,executable,symlink,message,hg-tag,whitespace,problemlists,copyright

doc/building.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,10 +1380,9 @@ <h4 id="alsa-1">ALSA</h4>
13801380
can specify it by <code>--with-alsa</code>.</p></li>
13811381
</ul>
13821382
<h4 id="x11-1">X11</h4>
1383-
<p>You will need X11 libraries suitable for your <em>target</em> system.
1384-
In most cases, using Debian's pre-built libraries work fine.</p>
1385-
<p>Note that X11 is needed even if you only want to build a headless
1386-
JDK.</p>
1383+
<p>When not building a headless JDK, you will need X11 libraries
1384+
suitable for your <em>target</em> system. In most cases, using Debian's
1385+
pre-built libraries work fine.</p>
13871386
<ul>
13881387
<li><p>Go to <a href="https://www.debian.org/distrib/packages">Debian
13891388
Package Search</a>, search for the following packages for your

doc/building.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,10 +1173,8 @@ Note that alsa is needed even if you only want to build a headless JDK.
11731173

11741174
#### X11
11751175

1176-
You will need X11 libraries suitable for your *target* system. In most cases,
1177-
using Debian's pre-built libraries work fine.
1178-
1179-
Note that X11 is needed even if you only want to build a headless JDK.
1176+
When not building a headless JDK, you will need X11 libraries suitable for your
1177+
*target* system. In most cases, using Debian's pre-built libraries work fine.
11801178

11811179
* Go to [Debian Package Search](https://www.debian.org/distrib/packages),
11821180
search for the following packages for your *target* system, and download them

make/autoconf/basic_tools.m4

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2026, 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
@@ -384,6 +384,10 @@ AC_DEFUN_ONCE([BASIC_SETUP_COMPLEX_TOOLS],
384384
IS_GNU_DATE=yes
385385
else
386386
AC_MSG_RESULT([no])
387+
# Likely at the AIX provided version of the date utility here, which is not compatible
388+
if test "x$OPENJDK_TARGET_OS" = "xaix"; then
389+
AC_MSG_ERROR([gnu date from AIX toolbox is required])
390+
fi
387391
IS_GNU_DATE=no
388392
fi
389393
AC_SUBST(IS_GNU_DATE)

make/autoconf/flags-cflags.m4

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,11 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
565565
TOOLCHAIN_CFLAGS_JDK_CONLY="-fno-strict-aliasing" # technically NOT for CXX
566566
fi
567567
568+
if test "x$ENABLE_LINKTIME_GC" = xtrue; then
569+
TOOLCHAIN_CFLAGS_JDK="$TOOLCHAIN_CFLAGS_JDK -ffunction-sections -fdata-sections"
570+
TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -ffunction-sections -fdata-sections"
571+
fi
572+
568573
if test "x$OPENJDK_TARGET_OS" = xaix; then
569574
TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -ffunction-sections -ftls-model -fno-math-errno"
570575
TOOLCHAIN_CFLAGS_JDK="-ffunction-sections -fsigned-char"

make/autoconf/flags-ldflags.m4

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
7676
if test "x$CXX_IS_USER_SUPPLIED" = xfalse && test "x$CC_IS_USER_SUPPLIED" = xfalse; then
7777
UTIL_REQUIRE_PROGS(LLD, lld, $TOOLCHAIN_PATH:$PATH)
7878
fi
79+
80+
if test "x$ENABLE_LINKTIME_GC" = xtrue; then
81+
BASIC_LDFLAGS_JDK_ONLY="$BASIC_LDFLAGS_JDK_ONLY -Wl,--gc-sections"
82+
fi
7983
fi
8084
if test "x$OPENJDK_TARGET_OS" = xaix; then
8185
BASIC_LDFLAGS="-Wl,-b64 -Wl,-brtl -Wl,-bnorwexec -Wl,-blibpath:/usr/lib:lib -Wl,-bnoexpall \
@@ -98,6 +102,9 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
98102
99103
# Setup OS-dependent LDFLAGS
100104
if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$TOOLCHAIN_TYPE" = xclang; then
105+
if test x$DEBUG_LEVEL = xrelease; then
106+
BASIC_LDFLAGS_JDK_ONLY="$BASIC_LDFLAGS_JDK_ONLY -Wl,-dead_strip"
107+
fi
101108
# FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead.
102109
OS_LDFLAGS_JVM_ONLY="-Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.."
103110
OS_LDFLAGS="-mmacosx-version-min=$MACOSX_VERSION_MIN -Wl,-reproducible"

make/autoconf/jdk-options.m4

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,20 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
102102
CHECKING_MSG: [if we should build headless-only (no GUI)])
103103
AC_SUBST(ENABLE_HEADLESS_ONLY)
104104
105+
# Avoid headless-only on macOS and Windows, it is not supported there
106+
if test "x$ENABLE_HEADLESS_ONLY" = xtrue; then
107+
if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then
108+
AC_MSG_ERROR([headless-only is not supported on macOS and Windows])
109+
fi
110+
fi
111+
105112
# should we linktime gc unused code sections in the JDK build ?
106-
if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK_TARGET_CPU" = xs390x; then
107-
LINKTIME_GC_DEFAULT=true
113+
if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
114+
if test "x$OPENJDK_TARGET_CPU" = "xs390x" || test "x$OPENJDK_TARGET_CPU" = "xppc64le"; then
115+
LINKTIME_GC_DEFAULT=true
116+
else
117+
LINKTIME_GC_DEFAULT=false
118+
fi
108119
else
109120
LINKTIME_GC_DEFAULT=false
110121
fi

make/autoconf/libraries.m4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ m4_include([lib-tests.m4])
4242
AC_DEFUN_ONCE([LIB_DETERMINE_DEPENDENCIES],
4343
[
4444
# Check if X11 is needed
45-
if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then
46-
# No X11 support on windows or macosx
45+
if test "x$OPENJDK_TARGET_OS" = xwindows ||
46+
test "x$OPENJDK_TARGET_OS" = xmacosx ||
47+
test "x$ENABLE_HEADLESS_ONLY" = xtrue; then
4748
NEEDS_LIB_X11=false
4849
else
49-
# All other instances need X11, even if building headless only, libawt still
50-
# needs X11 headers.
50+
# All other instances need X11 for libawt.
5151
NEEDS_LIB_X11=true
5252
fi
5353

make/conf/version-numbers.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828

2929
DEFAULT_VERSION_FEATURE=25
3030
DEFAULT_VERSION_INTERIM=0
31-
DEFAULT_VERSION_UPDATE=3
31+
DEFAULT_VERSION_UPDATE=4
3232
DEFAULT_VERSION_PATCH=0
3333
DEFAULT_VERSION_EXTRA1=0
3434
DEFAULT_VERSION_EXTRA2=0
3535
DEFAULT_VERSION_EXTRA3=0
36-
DEFAULT_VERSION_DATE=2026-04-21
36+
DEFAULT_VERSION_DATE=2026-07-21
3737
DEFAULT_VERSION_CLASSFILE_MAJOR=69 # "`$EXPR $DEFAULT_VERSION_FEATURE + 44`"
3838
DEFAULT_VERSION_CLASSFILE_MINOR=0
3939
DEFAULT_VERSION_DOCS_API_SINCE=11
4040
DEFAULT_ACCEPTABLE_BOOT_VERSIONS="24 25"
4141
DEFAULT_JDK_SOURCE_TARGET_VERSION=25
42-
DEFAULT_PROMOTED_VERSION_PRE=
42+
DEFAULT_PROMOTED_VERSION_PRE=ea

0 commit comments

Comments
 (0)