Skip to content

Commit ce67796

Browse files
Merge tag 'jdk-24+23' into labsjdk/adopt-jdk-24+23-master
Added tag jdk-24+23 for changeset c0e6c3b
2 parents 219ef3d + c0e6c3b commit ce67796

File tree

783 files changed

+125117
-29580
lines changed

Some content is hidden

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

783 files changed

+125117
-29580
lines changed

.github/actions/build-jtreg/action.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,8 @@ runs:
5252

5353
- name: 'Build JTReg'
5454
run: |
55-
# Try building JTReg several times, backing off exponentially on failure.
56-
# ~500 seconds in total should be enough to capture most of the transient
57-
# failures.
58-
for I in `seq 0 8`; do
59-
rm -rf build/images/jtreg
60-
bash make/build.sh --jdk "$JAVA_HOME_17_X64" && break
61-
S=$(( 2 ** $I ))
62-
echo "Failure. Waiting $S seconds before retrying"
63-
sleep $S
64-
done
65-
66-
# Check if build was successful
67-
if [ ! -d build/images/jtreg ]; then
68-
echo "Build failed"
69-
exit 1;
70-
fi
71-
72-
# Move files to the proper locations
55+
# Build JTReg and move files to the proper locations
56+
bash make/build.sh --jdk "$JAVA_HOME_17_X64"
7357
mkdir ../installed
7458
mv build/images/jtreg/* ../installed
7559
working-directory: jtreg/src

.github/workflows/main.yml

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -374,48 +374,3 @@ jobs:
374374
platform: windows-x64
375375
bootjdk-platform: windows-x64
376376
runs-on: windows-2019
377-
378-
# Remove bundles so they are not misconstrued as binary distributions from the JDK project
379-
remove-bundles:
380-
name: 'Remove bundle artifacts'
381-
runs-on: ubuntu-22.04
382-
if: always()
383-
needs:
384-
- build-linux-x64
385-
- build-linux-x86-hs
386-
- build-linux-x64-hs-nopch
387-
- build-linux-x64-hs-zero
388-
- build-linux-x64-hs-minimal
389-
- build-linux-x64-hs-optimized
390-
- build-linux-cross-compile
391-
- build-alpine-linux-x64
392-
- build-macos-x64
393-
- build-macos-aarch64
394-
- build-windows-x64
395-
- build-windows-aarch64
396-
- test-linux-x64
397-
- test-macos-x64
398-
- test-macos-aarch64
399-
- test-windows-x64
400-
401-
steps:
402-
- name: 'Remove bundle artifacts'
403-
run: |
404-
# Find and remove all bundle artifacts
405-
# See: https://docs.github.com/en/rest/actions/artifacts?apiVersion=2022-11-28
406-
ALL_ARTIFACT_IDS="$(curl -sL \
407-
-H 'Accept: application/vnd.github+json' \
408-
-H 'Authorization: Bearer ${{ github.token }}' \
409-
-H 'X-GitHub-Api-Version: 2022-11-28' \
410-
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts?per_page=100')"
411-
BUNDLE_ARTIFACT_IDS="$(echo "$ALL_ARTIFACT_IDS" | jq -r -c '.artifacts | map(select(.name|startswith("bundles-"))) | .[].id')"
412-
for id in $BUNDLE_ARTIFACT_IDS; do
413-
echo "Removing $id"
414-
curl -sL \
415-
-X DELETE \
416-
-H 'Accept: application/vnd.github+json' \
417-
-H 'Authorization: Bearer ${{ github.token }}' \
418-
-H 'X-GitHub-Api-Version: 2022-11-28' \
419-
"${{ github.api_url }}/repos/${{ github.repository }}/actions/artifacts/$id" \
420-
|| echo "Failed to remove bundle"
421-
done

make/RunTests.gmk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ define SetupRunMicroTestBody
604604
$1_JMH_JVM_ARGS += $$(MICRO_VM_OPTIONS) $$(MICRO_JAVA_OPTIONS)
605605
endif
606606

607-
$1_MICRO_VM_OPTIONS := -jvmArgs $(call ShellQuote,$$($1_JMH_JVM_ARGS))
607+
$1_MICRO_VM_OPTIONS := -jvmArgsPrepend $(call ShellQuote,$$($1_JMH_JVM_ARGS))
608608

609609
ifneq ($$(MICRO_ITER), )
610610
$1_MICRO_ITER := -i $$(MICRO_ITER)
@@ -856,6 +856,10 @@ define SetupRunJtregTestBody
856856
JTREG_AUTO_PROBLEM_LISTS += ProblemList-zgc.txt
857857
endif
858858

859+
ifneq ($$(findstring -XX:+UseShenandoahGC, $$(JTREG_ALL_OPTIONS)), )
860+
JTREG_AUTO_PROBLEM_LISTS += ProblemList-shenandoah.txt
861+
endif
862+
859863
ifneq ($$(JTREG_EXTRA_PROBLEM_LISTS), )
860864
# Accept both absolute paths as well as relative to the current test root.
861865
$1_JTREG_BASIC_OPTIONS += $$(addprefix $$(JTREG_PROBLEM_LIST_PREFIX), $$(wildcard \

make/autoconf/flags-cflags.m4

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,36 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
912912
IF_FALSE: [$2FDLIBM_CFLAGS=""])
913913
fi
914914
AC_SUBST($2FDLIBM_CFLAGS)
915+
916+
# Check whether the compiler supports the Arm C Language Extensions (ACLE)
917+
# for SVE. Set SVE_CFLAGS to -march=armv8-a+sve if it does.
918+
# ACLE and this flag are required to build the aarch64 SVE related functions in
919+
# libvectormath.
920+
if test "x$OPENJDK_TARGET_CPU" = "xaarch64"; then
921+
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
922+
AC_LANG_PUSH(C)
923+
OLD_CFLAGS="$CFLAGS"
924+
CFLAGS="$CFLAGS -march=armv8-a+sve"
925+
AC_MSG_CHECKING([if Arm SVE ACLE is supported])
926+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <arm_sve.h>],
927+
[
928+
svint32_t r = svdup_n_s32(1);
929+
return 0;
930+
])],
931+
[
932+
AC_MSG_RESULT([yes])
933+
$2SVE_CFLAGS="-march=armv8-a+sve"
934+
],
935+
[
936+
AC_MSG_RESULT([no])
937+
$2SVE_CFLAGS=""
938+
]
939+
)
940+
CFLAGS="$OLD_CFLAGS"
941+
AC_LANG_POP(C)
942+
fi
943+
fi
944+
AC_SUBST($2SVE_CFLAGS)
915945
])
916946

917947
# FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX])

make/autoconf/flags-ldflags.m4

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
7373
if test "x$OPENJDK_TARGET_OS" = xlinux; then
7474
# Clang needs the lld linker to work correctly
7575
BASIC_LDFLAGS="-fuse-ld=lld -Wl,--exclude-libs,ALL"
76-
UTIL_REQUIRE_PROGS(LLD, lld)
76+
if test "x$CXX_IS_USER_SUPPLIED" = xfalse && test "x$CC_IS_USER_SUPPLIED" = xfalse; then
77+
UTIL_REQUIRE_PROGS(LLD, lld)
78+
fi
7779
fi
7880
if test "x$OPENJDK_TARGET_OS" = xaix; then
7981
BASIC_LDFLAGS="-Wl,-b64 -Wl,-brtl -Wl,-bnorwexec -Wl,-bnolibpath -Wl,-bnoexpall \

make/autoconf/spec.gmk.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,9 @@ OS_VERSION_MAJOR := @OS_VERSION_MAJOR@
827827
OS_VERSION_MINOR := @OS_VERSION_MINOR@
828828
OS_VERSION_MICRO := @OS_VERSION_MICRO@
829829

830+
# Arm SVE
831+
SVE_CFLAGS := @SVE_CFLAGS@
832+
830833
# Images directory definitions
831834
JDK_IMAGE_SUBDIR := jdk
832835
JRE_IMAGE_SUBDIR := jre

make/autoconf/toolchain.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ AC_DEFUN([TOOLCHAIN_FIND_COMPILER],
445445
AC_MSG_ERROR([User supplied compiler $1=[$]$1 does not exist])
446446
fi
447447
fi
448+
$1_IS_USER_SUPPLIED=true
448449
else
449450
# No user supplied value. Locate compiler ourselves.
450451
@@ -462,6 +463,7 @@ AC_DEFUN([TOOLCHAIN_FIND_COMPILER],
462463
HELP_MSG_MISSING_DEPENDENCY([devkit])
463464
AC_MSG_ERROR([Could not find a $COMPILER_NAME compiler. $HELP_MSG])
464465
fi
466+
$1_IS_USER_SUPPLIED=false
465467
fi
466468
467469
# Now we have a compiler binary in $1. Make sure it's okay.

make/data/cldr/common/bcp47/currency.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,9 @@ For terms of use, see http://www.unicode.org/copyright.html
318318
<type name="zrn" description="Zairean New Zaire (1993-1998)"/>
319319
<type name="zrz" description="Zairean Zaire (1971-1993)"/>
320320
<type name="zwd" description="Zimbabwean Dollar (1980-2008)"/>
321-
<type name="zwl" description="Zimbabwean Dollar (2009)" since="1.9"/>
321+
<type name="zwl" description="Zimbabwean Dollar (2009-2024)" since="1.9"/>
322322
<type name="zwr" description="Zimbabwean Dollar (2008)" since="1.9"/>
323+
<type name="zwg" description="Zimbabwean Gold" since="46"/>
323324
</key>
324325
</keyword>
325326
</ldmlBCP47>

make/data/cldr/common/bcp47/number.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ For terms of use, see http://www.unicode.org/copyright.html
2828
<type name="ethi" description="Ethiopic numerals — algorithmic"/>
2929
<type name="finance" description="Financial numerals — may be algorithmic" since="21"/>
3030
<type name="fullwide" description="Full width digits"/>
31+
<type name="gara" description="Garay digits" since="46"/>
3132
<type name="geor" description="Georgian numerals — algorithmic"/>
3233
<type name="gong" description="Gunjala Gondi digits" since="33.1"/>
3334
<type name="gonm" description="Masaram Gondi digits" since="32"/>
3435
<type name="grek" description="Greek upper case numerals — algorithmic"/>
3536
<type name="greklow" description="Greek lower case numerals — algorithmic"/>
3637
<type name="gujr" description="Gujarati digits"/>
38+
<type name="gukh" description="Gurung Khema digits" since="46"/>
3739
<type name="guru" description="Gurmukhi digits"/>
3840
<type name="hanidays" description="Han-character day-of-month numbering for lunar/other traditional calendars" since="25"/>
3941
<type name="hanidec" description="Positional decimal system using Chinese number ideographs as digits" since="1.9"/>
@@ -52,6 +54,7 @@ For terms of use, see http://www.unicode.org/copyright.html
5254
<type name="kawi" description="Kawi digits" since="42"/>
5355
<type name="khmr" description="Khmer digits"/>
5456
<type name="knda" description="Kannada digits"/>
57+
<type name="krai" description="Kirat Rai digits" since="46"/>
5558
<type name="lana" description="Tai Tham Hora (secular) digits" since="21"/>
5659
<type name="lanatham" description="Tai Tham Tham (ecclesiastical) digits" since="21"/>
5760
<type name="laoo" description="Lao digits"/>
@@ -69,15 +72,19 @@ For terms of use, see http://www.unicode.org/copyright.html
6972
<type name="mroo" description="Mro digits" since="28"/>
7073
<type name="mtei" description="Meetei Mayek digits" since="21"/>
7174
<type name="mymr" description="Myanmar digits"/>
75+
<type name="mymrepka" description="Myanmar Eastern Pwo Karen digits" since="46"/>
76+
<type name="mymrpao" description="Myanmar Pao digits" since="46"/>
7277
<type name="mymrshan" description="Myanmar Shan digits" since="21"/>
7378
<type name="mymrtlng" description="Myanmar Tai Laing digits" since="28"/>
7479
<type name="nagm" description="Nag Mundari digits" since="42"/>
7580
<type name="native" description="Native digits" since="21"/>
7681
<type name="newa" description="Newa digits" since="30"/>
7782
<type name="nkoo" description="N'Ko digits" since="21"/>
7883
<type name="olck" description="Ol Chiki digits" since="21"/>
84+
<type name="onao" description="Ol Onal digits" since="46"/>
7985
<type name="orya" description="Oriya digits"/>
8086
<type name="osma" description="Osmanya digits" since="21"/>
87+
<type name="outlined" description="Legacy computing outlined digits" since="46"/>
8188
<type name="rohg" description="Hanifi Rohingya digits" since="33.1"/>
8289
<type name="roman" description="Roman upper case numerals — algorithmic"/>
8390
<type name="romanlow" description="Roman lowercase numerals — algorithmic"/>
@@ -88,6 +95,7 @@ For terms of use, see http://www.unicode.org/copyright.html
8895
<type name="sinh" description="Sinhala Lith digits" since="28"/>
8996
<type name="sora" description="Sora_Sompeng digits" since="21"/>
9097
<type name="sund" description="Sundanese digits" since="21"/>
98+
<type name="sunu" description="Sunuwar digits" since="46"/>
9199
<type name="takr" description="Takri digits" since="21"/>
92100
<type name="talu" description="New Tai Lue digits" since="21"/>
93101
<type name="taml" description="Tamil numerals — algorithmic"/>

0 commit comments

Comments
 (0)