Skip to content

Commit 516660f

Browse files
committed
Merge branch 'lworld' of http://github.com/openjdk/valhalla into merge_lworld2
2 parents 8b1efdb + 296fe86 commit 516660f

File tree

3,078 files changed

+183903
-47431
lines changed

Some content is hidden

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

3,078 files changed

+183903
-47431
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ jobs:
327327
uses: ./.github/workflows/build-macos.yml
328328
with:
329329
platform: macos-x64
330-
runs-on: 'macos-13'
331-
xcode-toolset-version: '14.3.1'
330+
runs-on: 'macos-15-intel'
331+
xcode-toolset-version: '16.4'
332332
configure-arguments: ${{ github.event.inputs.configure-arguments }}
333333
make-arguments: ${{ github.event.inputs.make-arguments }}
334334
dry-run: ${{ needs.prepare.outputs.dry-run == 'true' }}
@@ -340,8 +340,8 @@ jobs:
340340
uses: ./.github/workflows/build-macos.yml
341341
with:
342342
platform: macos-aarch64
343-
runs-on: 'macos-14'
344-
xcode-toolset-version: '15.4'
343+
runs-on: 'macos-15'
344+
xcode-toolset-version: '16.4'
345345
configure-arguments: ${{ github.event.inputs.configure-arguments }}
346346
make-arguments: ${{ github.event.inputs.make-arguments }}
347347
dry-run: ${{ needs.prepare.outputs.dry-run == 'true' }}
@@ -432,9 +432,9 @@ jobs:
432432
with:
433433
platform: macos-aarch64
434434
bootjdk-platform: macos-aarch64
435-
runs-on: macos-14
435+
runs-on: macos-15
436436
dry-run: ${{ needs.prepare.outputs.dry-run == 'true' }}
437-
xcode-toolset-version: '15.4'
437+
xcode-toolset-version: '16.4'
438438
debug-suffix: -debug
439439

440440
test-windows-x64:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ NashornProfile.txt
2525
**/core.[0-9]*
2626
*.rej
2727
*.orig
28+
test/benchmarks/**/target

make/Hsdis.gmk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ ifeq ($(HSDIS_BACKEND), binutils)
114114
TOOLCHAIN_TYPE := gcc
115115
OPENJDK_TARGET_OS := linux
116116
OPENJDK_TARGET_OS_TYPE := unix
117-
CC_OUT_OPTION := -o$(SPACE)
118117
GENDEPS_FLAGS := -MMD -MF
119118
CFLAGS_DEBUG_SYMBOLS := -g
120119
DISABLED_WARNINGS :=

make/StaticLibs.gmk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ else ifeq ($(call isTargetOs, aix), true)
116116
$(eval STATIC_LIB_EXPORT_FILES += $(lib).exp) \
117117
)
118118
STATIC_LIBS := -Wl,-bexpfull $(STATIC_LIB_FILES) $(addprefix -Wl$(COMMA)-bE:, $(STATIC_LIB_EXPORT_FILES))
119+
ifeq ($(DEBUG_LEVEL), slowdebug)
120+
STATIC_LIBS += -Wl,-bbigtoc
121+
endif
119122
else
120123
$(error Unsupported platform)
121124
endif

make/autoconf/basic_tools.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ AC_DEFUN_ONCE([BASIC_SETUP_COMPLEX_TOOLS],
363363
364364
# Check if it's a GNU date compatible version
365365
AC_MSG_CHECKING([if date is a GNU compatible version])
366-
check_date=`$DATE --version 2>&1 | $GREP "GNU\|BusyBox"`
366+
check_date=`$DATE --version 2>&1 | $GREP "GNU\|BusyBox\|uutils"`
367367
if test "x$check_date" != x; then
368368
AC_MSG_RESULT([yes])
369369
IS_GNU_DATE=yes

make/autoconf/boot-jdk.m4

Lines changed: 9 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -408,27 +408,6 @@ AC_DEFUN_ONCE([BOOTJDK_SETUP_BOOT_JDK],
408408
AC_MSG_CHECKING([if Boot JDK is 32 or 64 bits])
409409
AC_MSG_RESULT([$BOOT_JDK_BITS])
410410
411-
# Try to enable CDS
412-
AC_MSG_CHECKING([for local Boot JDK Class Data Sharing (CDS)])
413-
BOOT_JDK_CDS_ARCHIVE=$CONFIGURESUPPORT_OUTPUTDIR/classes.jsa
414-
UTIL_ADD_JVM_ARG_IF_OK([-XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE],boot_jdk_cds_args,[$JAVA])
415-
416-
if test "x$boot_jdk_cds_args" != x; then
417-
# Try creating a CDS archive
418-
$JAVA $boot_jdk_cds_args -Xshare:dump > /dev/null 2>&1
419-
if test $? -eq 0; then
420-
BOOTJDK_USE_LOCAL_CDS=true
421-
AC_MSG_RESULT([yes, created])
422-
else
423-
# Generation failed, don't use CDS.
424-
BOOTJDK_USE_LOCAL_CDS=false
425-
AC_MSG_RESULT([no, creation failed])
426-
fi
427-
else
428-
BOOTJDK_USE_LOCAL_CDS=false
429-
AC_MSG_RESULT([no, -XX:SharedArchiveFile not supported])
430-
fi
431-
432411
BOOTJDK_SETUP_CLASSPATH
433412
])
434413

@@ -444,13 +423,8 @@ AC_DEFUN_ONCE([BOOTJDK_SETUP_BOOT_JDK_ARGUMENTS],
444423
# Force en-US environment
445424
UTIL_ADD_JVM_ARG_IF_OK([-Duser.language=en -Duser.country=US],boot_jdk_jvmargs,[$JAVA])
446425
447-
if test "x$BOOTJDK_USE_LOCAL_CDS" = xtrue; then
448-
# Use our own CDS archive
449-
UTIL_ADD_JVM_ARG_IF_OK([$boot_jdk_cds_args -Xshare:auto],boot_jdk_jvmargs,[$JAVA])
450-
else
451-
# Otherwise optimistically use the system-wide one, if one is present
452-
UTIL_ADD_JVM_ARG_IF_OK([-Xshare:auto],boot_jdk_jvmargs,[$JAVA])
453-
fi
426+
UTIL_ADD_JVM_ARG_IF_OK([-Xlog:all=off:stdout],boot_jdk_jvmargs,[$JAVA])
427+
UTIL_ADD_JVM_ARG_IF_OK([-Xlog:all=warning:stderr],boot_jdk_jvmargs,[$JAVA])
454428
455429
# Finally append user provided options to allow them to override.
456430
UTIL_ADD_JVM_ARG_IF_OK([$USER_BOOT_JDK_OPTIONS],boot_jdk_jvmargs,[$JAVA])
@@ -597,51 +571,25 @@ AC_DEFUN([BOOTJDK_SETUP_BUILD_JDK],
597571
AC_ARG_WITH(build-jdk, [AS_HELP_STRING([--with-build-jdk],
598572
[path to JDK of same version as is being built@<:@the newly built JDK@:>@])])
599573
600-
CREATE_BUILDJDK=false
601-
EXTERNAL_BUILDJDK=false
602-
BUILD_JDK_FOUND="no"
574+
EXTERNAL_BUILDJDK_PATH=""
603575
if test "x$with_build_jdk" != "x"; then
576+
BUILD_JDK_FOUND=no
604577
BOOTJDK_CHECK_BUILD_JDK([
605578
if test "x$with_build_jdk" != x; then
606579
BUILD_JDK=$with_build_jdk
607580
BUILD_JDK_FOUND=maybe
608581
AC_MSG_NOTICE([Found potential Build JDK using configure arguments])
609582
fi
610583
])
611-
EXTERNAL_BUILDJDK=true
612-
else
613-
if test "x$COMPILE_TYPE" = "xcross"; then
614-
BUILD_JDK="\$(BUILDJDK_OUTPUTDIR)/jdk"
615-
BUILD_JDK_FOUND=yes
616-
CREATE_BUILDJDK=true
617-
AC_MSG_CHECKING([for Build JDK])
618-
AC_MSG_RESULT([yes, will build it for the host platform])
619-
else
620-
BUILD_JDK="\$(JDK_OUTPUTDIR)"
621-
BUILD_JDK_FOUND=yes
584+
if test "x$BUILD_JDK_FOUND" != "xyes"; then
622585
AC_MSG_CHECKING([for Build JDK])
623-
AC_MSG_RESULT([yes, will use output dir])
586+
AC_MSG_RESULT([no])
587+
AC_MSG_ERROR([Could not find a suitable Build JDK])
624588
fi
589+
EXTERNAL_BUILDJDK_PATH="$BUILD_JDK"
625590
fi
626591
627-
# Since these tools do not yet exist, we cannot use UTIL_FIXUP_EXECUTABLE to
628-
# detect the need of fixpath
629-
JMOD="$BUILD_JDK/bin/jmod"
630-
UTIL_ADD_FIXPATH(JMOD)
631-
JLINK="$BUILD_JDK/bin/jlink"
632-
UTIL_ADD_FIXPATH(JLINK)
633-
AC_SUBST(JMOD)
634-
AC_SUBST(JLINK)
635-
636-
if test "x$BUILD_JDK_FOUND" != "xyes"; then
637-
AC_MSG_CHECKING([for Build JDK])
638-
AC_MSG_RESULT([no])
639-
AC_MSG_ERROR([Could not find a suitable Build JDK])
640-
fi
641-
642-
AC_SUBST(CREATE_BUILDJDK)
643-
AC_SUBST(BUILD_JDK)
644-
AC_SUBST(EXTERNAL_BUILDJDK)
592+
AC_SUBST(EXTERNAL_BUILDJDK_PATH)
645593
])
646594

647595
# The docs-reference JDK is used to run javadoc for the docs-reference targets.

make/autoconf/bootcycle-spec.gmk.template

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,3 @@ JAVAC_CMD := $(FIXPATH) $(BOOT_JDK)/bin/javac
4444
JAR_CMD := $(FIXPATH) $(BOOT_JDK)/bin/jar
4545
# The bootcycle JVM arguments may differ from the original boot jdk.
4646
JAVA_FLAGS_BIG := @BOOTCYCLE_JVM_ARGS_BIG@
47-
# Any CDS settings generated for the bootjdk are invalid in the bootcycle build.
48-
# By filtering out those JVM args, the bootcycle JVM will use its default
49-
# settings for CDS.
50-
JAVA_FLAGS := $(filter-out -XX:SharedArchiveFile% -Xshare%, $(JAVA_FLAGS))

make/autoconf/flags-cflags.m4

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -37,56 +37,25 @@ AC_DEFUN([FLAGS_SETUP_SHARED_LIBS],
3737
if test "x$TOOLCHAIN_TYPE" = xgcc; then
3838
# Default works for linux, might work on other platforms as well.
3939
SHARED_LIBRARY_FLAGS='-shared'
40-
# --disable-new-dtags forces use of RPATH instead of RUNPATH for rpaths.
41-
# This protects internal library dependencies within the JDK from being
42-
# overridden using LD_LIBRARY_PATH. See JDK-8326891 for more information.
43-
SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN[$]1 -Wl,--disable-new-dtags'
44-
SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN"
45-
SET_SHARED_LIBRARY_NAME='-Wl,-soname=[$]1'
4640
4741
elif test "x$TOOLCHAIN_TYPE" = xclang; then
4842
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
4943
# Linking is different on MacOSX
5044
SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0"
51-
SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or [$]1,/.)'
52-
SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN"
53-
SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/[$]1'
5445
5546
elif test "x$OPENJDK_TARGET_OS" = xaix; then
5647
# Linking is different on aix
5748
SHARED_LIBRARY_FLAGS="-shared -Wl,-bM:SRE -Wl,-bnoentry"
58-
SET_EXECUTABLE_ORIGIN=""
59-
SET_SHARED_LIBRARY_ORIGIN=''
60-
SET_SHARED_LIBRARY_NAME=''
6149
6250
else
6351
# Default works for linux, might work on other platforms as well.
6452
SHARED_LIBRARY_FLAGS='-shared'
65-
SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN[$]1'
66-
if test "x$OPENJDK_TARGET_OS" = xlinux; then
67-
SET_EXECUTABLE_ORIGIN="$SET_EXECUTABLE_ORIGIN -Wl,--disable-new-dtags"
68-
fi
69-
SET_SHARED_LIBRARY_NAME='-Wl,-soname=[$]1'
70-
71-
# arm specific settings
72-
if test "x$OPENJDK_TARGET_CPU" = "xarm"; then
73-
# '-Wl,-z,origin' isn't used on arm.
74-
SET_SHARED_LIBRARY_ORIGIN='-Wl,-rpath,\$$$$ORIGIN[$]1'
75-
else
76-
SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN"
77-
fi
7853
fi
7954
8055
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
8156
SHARED_LIBRARY_FLAGS="-dll"
82-
SET_EXECUTABLE_ORIGIN=''
83-
SET_SHARED_LIBRARY_ORIGIN=''
84-
SET_SHARED_LIBRARY_NAME=''
8557
fi
8658
87-
AC_SUBST(SET_EXECUTABLE_ORIGIN)
88-
AC_SUBST(SET_SHARED_LIBRARY_ORIGIN)
89-
AC_SUBST(SET_SHARED_LIBRARY_NAME)
9059
AC_SUBST(SHARED_LIBRARY_FLAGS)
9160
])
9261

make/autoconf/flags-ldflags.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
7979
fi
8080
if test "x$OPENJDK_TARGET_OS" = xaix; then
8181
BASIC_LDFLAGS="-Wl,-b64 -Wl,-brtl -Wl,-bnorwexec -Wl,-blibpath:/usr/lib:lib -Wl,-bnoexpall \
82-
-Wl,-bernotok -Wl,-bdatapsize:64k -Wl,-btextpsize:64k -Wl,-bstackpsize:64k"
82+
-Wl,-bernotok -Wl,-bcdtors:mbr::s -Wl,-bdatapsize:64k -Wl,-btextpsize:64k -Wl,-bstackpsize:64k"
8383
BASIC_LDFLAGS_JVM_ONLY="$BASIC_LDFLAGS_JVM_ONLY -Wl,-lC_r -Wl,-bbigtoc"
8484
fi
8585
@@ -98,7 +98,7 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
9898
9999
# Setup OS-dependent LDFLAGS
100100
if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$TOOLCHAIN_TYPE" = xclang; then
101-
# FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead.
101+
# FIXME: We should really generalize SetSharedLibraryOrigin instead.
102102
OS_LDFLAGS_JVM_ONLY="-Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.."
103103
OS_LDFLAGS="-mmacosx-version-min=$MACOSX_VERSION_MIN -Wl,-reproducible"
104104
fi

make/autoconf/flags.m4

Lines changed: 1 addition & 7 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
@@ -319,16 +319,10 @@ AC_DEFUN_ONCE([FLAGS_PRE_TOOLCHAIN],
319319
AC_DEFUN([FLAGS_SETUP_TOOLCHAIN_CONTROL],
320320
[
321321
if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
322-
CC_OUT_OPTION=-Fo
323322
if test "x$OPENJDK_TARGET_CPU" != xaarch64; then
324323
AS_NON_ASM_EXTENSION_OPTION=-Ta
325324
fi
326-
else
327-
# The option used to specify the target .o,.a or .so file.
328-
# When compiling, how to specify the to be created object file.
329-
CC_OUT_OPTION='-o$(SPACE)'
330325
fi
331-
AC_SUBST(CC_OUT_OPTION)
332326
AC_SUBST(AS_NON_ASM_EXTENSION_OPTION)
333327
334328
# Generate make dependency files

0 commit comments

Comments
 (0)