Skip to content

Commit 18aa942

Browse files
[GR-63602] Merge in jdk-24.0.2+2 (24.2)
PullRequest: labsjdk-ce/165
2 parents 166c5d2 + 260b0b0 commit 18aa942

File tree

801 files changed

+27342
-16737
lines changed

Some content is hidden

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

801 files changed

+27342
-16737
lines changed

.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=24.0.1
4+
version=24.0.2
55

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

make/Docs.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ ifeq ($(ENABLE_PANDOC), true)
680680

681681
$(foreach m, $(ALL_MODULES), \
682682
$(eval MAN_$m := $(call ApplySpecFilter, $(filter %.md, $(call FindFiles, \
683-
$(call FindModuleManDirs, $m))))) \
683+
$(call FindModuleManDirsForDocs, $m))))) \
684684
$(if $(MAN_$m), \
685685
$(eval $(call SetupProcessMarkdown, MAN_TO_HTML_$m, \
686686
FILES := $(MAN_$m), \

make/Main.gmk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,10 @@ endif
13101310
################################################################################
13111311

13121312
# all-images builds all our deliverables as images.
1313-
all-images: product-images static-jdk-image test-image all-docs-images
1313+
all-images: product-images test-image all-docs-images
1314+
ifeq ($(call isTargetOs, linux macosx windows), true)
1315+
all-images: static-jdk-image
1316+
endif
13141317

13151318
# all-bundles packages all our deliverables as tar.gz bundles.
13161319
all-bundles: product-bundles test-bundles docs-bundles static-libs-bundles

make/autoconf/flags-cflags.m4

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2025, 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
@@ -277,7 +277,7 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS],
277277
AC_DEFUN([FLAGS_SETUP_QUALITY_CHECKS],
278278
[
279279
# bounds, memory and behavior checking options
280-
if test "x$TOOLCHAIN_TYPE" = xgcc; then
280+
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
281281
case $DEBUG_LEVEL in
282282
release )
283283
# no adjustment
@@ -354,7 +354,7 @@ AC_DEFUN([FLAGS_SETUP_OPTIMIZATION],
354354
C_O_FLAG_DEBUG="-Od"
355355
C_O_FLAG_DEBUG_JVM=""
356356
C_O_FLAG_NONE="-Od"
357-
C_O_FLAG_SIZE="-Os"
357+
C_O_FLAG_SIZE="-O1"
358358
fi
359359
360360
# Now copy to C++ flags
@@ -524,12 +524,6 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
524524
-fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer"
525525
fi
526526
527-
if test "x$TOOLCHAIN_TYPE" = xclang && test "x$OPENJDK_TARGET_OS" = xaix; then
528-
# clang compiler on aix needs -ffunction-sections
529-
TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -ffunction-sections -ftls-model -fno-math-errno -fstack-protector"
530-
TOOLCHAIN_CFLAGS_JDK="-ffunction-sections -fsigned-char -fstack-protector"
531-
fi
532-
533527
if test "x$TOOLCHAIN_TYPE" = xgcc; then
534528
TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -fstack-protector"
535529
TOOLCHAIN_CFLAGS_JDK="-fvisibility=hidden -pipe -fstack-protector"
@@ -549,7 +543,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
549543
# Restrict the debug information created by Clang to avoid
550544
# too big object files and speed the build up a little bit
551545
# (see http://llvm.org/bugs/show_bug.cgi?id=7554)
552-
TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -flimit-debug-info"
546+
TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -flimit-debug-info -fstack-protector"
553547
554548
# In principle the stack alignment below is cpu- and ABI-dependent and
555549
# should agree with values of StackAlignmentInBytes in various
@@ -567,7 +561,13 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
567561
TOOLCHAIN_CFLAGS_JDK="-pipe"
568562
TOOLCHAIN_CFLAGS_JDK_CONLY="-fno-strict-aliasing" # technically NOT for CXX
569563
fi
570-
TOOLCHAIN_CFLAGS_JDK="$TOOLCHAIN_CFLAGS_JDK -fvisibility=hidden"
564+
565+
if test "x$OPENJDK_TARGET_OS" = xaix; then
566+
TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -ffunction-sections -ftls-model -fno-math-errno"
567+
TOOLCHAIN_CFLAGS_JDK="-ffunction-sections -fsigned-char"
568+
fi
569+
570+
TOOLCHAIN_CFLAGS_JDK="$TOOLCHAIN_CFLAGS_JDK -fvisibility=hidden -fstack-protector"
571571
572572
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
573573
# The -utf-8 option sets source and execution character sets to UTF-8 to enable correct
@@ -743,7 +743,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
743743
elif test "x$FLAGS_CPU" = xppc64le; then
744744
# Little endian machine uses ELFv2 ABI.
745745
# Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI.
746-
$1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -DABI_ELFv2 -mcpu=power8 -mtune=power8"
746+
$1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -DABI_ELFv2 -mcpu=power8 -mtune=power10"
747747
fi
748748
elif test "x$FLAGS_CPU" = xs390x; then
749749
$1_CFLAGS_CPU="-mbackchain -march=z10"
@@ -761,6 +761,11 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
761761
# for all archs except arm and ppc, prevent gcc to omit frame pointer
762762
$1_CFLAGS_CPU_JDK="${$1_CFLAGS_CPU_JDK} -fno-omit-frame-pointer"
763763
fi
764+
if test "x$FLAGS_CPU" = xppc64le; then
765+
# Little endian machine uses ELFv2 ABI.
766+
# Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI.
767+
$1_CFLAGS_CPU_JVM="${$1_CFLAGS_CPU_JVM} -DABI_ELFv2 -mcpu=power8 -mtune=power10"
768+
fi
764769
fi
765770
if test "x$OPENJDK_TARGET_OS" = xaix; then
766771
$1_CFLAGS_CPU="-mcpu=pwr8"

make/common/Modules.gmk

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

9393
SPEC_SUBDIRS += share/specs
9494

95-
MAN_SUBDIRS += share/man windows/man
95+
MAN_SUBDIRS += share/man $(TARGET_OS)/man
96+
97+
# The docs should include the sum of all man pages for all platforms
98+
MAN_DOCS_SUBDIRS += share/man windows/man
9699

97100
# Find all module-info.java files for the current build target platform and
98101
# configuration.
@@ -158,6 +161,10 @@ FindModuleManDirs = \
158161
$(strip $(wildcard \
159162
$(foreach sub, $(MAN_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS)))))
160163

164+
FindModuleManDirsForDocs = \
165+
$(strip $(wildcard \
166+
$(foreach sub, $(MAN_DOCS_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS)))))
167+
161168
# Construct the complete module source path
162169
GetModuleSrcPath = \
163170
$(call PathList, \

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=24
3030
DEFAULT_VERSION_INTERIM=0
31-
DEFAULT_VERSION_UPDATE=1
31+
DEFAULT_VERSION_UPDATE=2
3232
DEFAULT_VERSION_PATCH=0
3333
DEFAULT_VERSION_EXTRA1=0
3434
DEFAULT_VERSION_EXTRA2=0
3535
DEFAULT_VERSION_EXTRA3=0
36-
DEFAULT_VERSION_DATE=2025-04-15
36+
DEFAULT_VERSION_DATE=2025-07-15
3737
DEFAULT_VERSION_CLASSFILE_MAJOR=68 # "`$EXPR $DEFAULT_VERSION_FEATURE + 44`"
3838
DEFAULT_VERSION_CLASSFILE_MINOR=0
3939
DEFAULT_VERSION_DOCS_API_SINCE=11
4040
DEFAULT_ACCEPTABLE_BOOT_VERSIONS="23 24"
4141
DEFAULT_JDK_SOURCE_TARGET_VERSION=24
42-
DEFAULT_PROMOTED_VERSION_PRE=
42+
DEFAULT_PROMOTED_VERSION_PRE=ea

make/hotspot/lib/CompileJvm.gmk

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2013, 2025, 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
@@ -125,9 +125,7 @@ else ifeq ($(call And, $(call isTargetOs, linux) $(call isTargetCpu, aarch64)),
125125
endif
126126
endif
127127

128-
ifeq ($(call isTargetOs, linux macosx windows), true)
129-
JVM_PRECOMPILED_HEADER := $(TOPDIR)/src/hotspot/share/precompiled/precompiled.hpp
130-
endif
128+
JVM_PRECOMPILED_HEADER := $(TOPDIR)/src/hotspot/share/precompiled/precompiled.hpp
131129

132130
ifeq ($(call isTargetCpu, x86), true)
133131
JVM_EXCLUDE_PATTERNS += x86_64

make/hotspot/lib/JvmOverrideFiles.gmk

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,7 @@ else ifeq ($(call isTargetOs, macosx), true)
110110
endif
111111

112112
else ifeq ($(call isTargetOs, aix), true)
113-
ifeq ($(TOOLCHAIN_TYPE), clang)
114-
BUILD_LIBJVM_synchronizer.cpp_CXXFLAGS := -fno-inline
115-
else
116-
BUILD_LIBJVM_synchronizer.cpp_CXXFLAGS := -qnoinline
117-
endif
113+
BUILD_LIBJVM_synchronizer.cpp_CXXFLAGS := -fno-inline
118114
BUILD_LIBJVM_sharedRuntimeTrans.cpp_CXXFLAGS := $(CXX_O_FLAG_NONE)
119115
# Disable aggressive optimizations for functions in sharedRuntimeTrig.cpp
120116
# and sharedRuntimeTrans.cpp on ppc64.
@@ -128,16 +124,16 @@ else ifeq ($(call isTargetOs, aix), true)
128124
# mode, so don't optimize sharedRuntimeTrig.cpp at all.
129125
BUILD_LIBJVM_sharedRuntimeTrig.cpp_CXXFLAGS := $(CXX_O_FLAG_NONE)
130126

131-
ifneq ($(DEBUG_LEVEL), slowdebug)
132-
# Compiling jvmtiEnterTrace.cpp with full optimization needs more than 30min
133-
# (mostly because of '-qhot=level=1' and the more than 1300 'log_trace' calls
134-
# which cause a lot of template expansion).
135-
BUILD_LIBJVM_jvmtiEnterTrace.cpp_OPTIMIZATION := LOW
136-
endif
137-
138127
# Disable ELF decoder on AIX (AIX uses XCOFF).
139128
JVM_EXCLUDE_PATTERNS += elf
140129

130+
JVM_PRECOMPILED_HEADER_EXCLUDE := \
131+
sharedRuntimeTrig.cpp \
132+
sharedRuntimeTrans.cpp \
133+
synchronizer.cpp \
134+
$(OPT_SPEED_SRC) \
135+
#
136+
141137
else ifeq ($(call isTargetOs, windows), true)
142138
JVM_PRECOMPILED_HEADER_EXCLUDE := \
143139
bytecodeInterpreter.cpp \

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ ifeq ($(ENABLE_HEADLESS_ONLY), false)
222222
EXCLUDE_SRC_PATTERNS := $(LIBSPLASHSCREEN_EXCLUDE_SRC_PATTERNS), \
223223
EXCLUDE_FILES := imageioJPEG.c jpegdecoder.c pngtest.c, \
224224
EXCLUDES := $(LIBSPLASHSCREEN_EXCLUDES), \
225-
OPTIMIZATION := LOW, \
225+
OPTIMIZATION := SIZE, \
226226
CFLAGS := $(LIBSPLASHSCREEN_CFLAGS) \
227227
$(GIFLIB_CFLAGS) $(LIBJPEG_CFLAGS) $(PNG_CFLAGS) $(LIBZ_CFLAGS), \
228228
CXXFLAGS := $(LIBSPLASHSCREEN_CFLAGS) \
@@ -231,7 +231,7 @@ ifeq ($(ENABLE_HEADLESS_ONLY), false)
231231
DISABLED_WARNINGS_gcc_dgif_lib.c := sign-compare, \
232232
DISABLED_WARNINGS_gcc_jcmaster.c := implicit-fallthrough, \
233233
DISABLED_WARNINGS_gcc_jdphuff.c := shift-negative-value, \
234-
DISABLED_WARNINGS_gcc_png.c := maybe-uninitialized, \
234+
DISABLED_WARNINGS_gcc_png.c := maybe-uninitialized unused-function, \
235235
DISABLED_WARNINGS_gcc_pngerror.c := maybe-uninitialized, \
236236
DISABLED_WARNINGS_gcc_splashscreen_gfx_impl.c := implicit-fallthrough \
237237
maybe-uninitialized, \
@@ -242,6 +242,7 @@ ifeq ($(ENABLE_HEADLESS_ONLY), false)
242242
DISABLED_WARNINGS_clang := deprecated-non-prototype, \
243243
DISABLED_WARNINGS_clang_dgif_lib.c := sign-compare, \
244244
DISABLED_WARNINGS_clang_gzwrite.c := format-nonliteral, \
245+
DISABLED_WARNINGS_clang_png.c := unused-function, \
245246
DISABLED_WARNINGS_clang_splashscreen_impl.c := sign-compare \
246247
unused-but-set-variable unused-function, \
247248
DISABLED_WARNINGS_clang_splashscreen_png.c := \
@@ -327,7 +328,7 @@ else
327328

328329
HARFBUZZ_DISABLED_WARNINGS_gcc := missing-field-initializers \
329330
strict-aliasing unused-result array-bounds parentheses \
330-
unused-variable
331+
unused-variable dangling-pointer
331332
# noexcept-type required for GCC 7 builds. Not required for GCC 8+.
332333
# expansion-to-defined required for GCC 9 builds. Not required for GCC 10+.
333334
# maybe-uninitialized required for GCC 8 builds. Not required for GCC 9+.

src/hotspot/cpu/aarch64/abstractInterpreter_aarch64.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ void AbstractInterpreter::layout_activation(Method* method,
150150

151151
#ifdef ASSERT
152152
if (caller->is_interpreted_frame()) {
153-
assert(locals < caller->fp() + frame::interpreter_frame_initial_sp_offset, "bad placement");
153+
assert(locals <= caller->interpreter_frame_expression_stack(), "bad placement");
154+
assert(locals >= interpreter_frame->sender_sp() + max_locals - 1, "bad placement");
154155
}
155156
#endif
156157

0 commit comments

Comments
 (0)