Skip to content

Commit baea59a

Browse files
committed
Merge tag 'jdk-11.0.15-ga' into fips
Added tag jdk-11.0.15-ga for changeset 224e1a3
2 parents 33d4d26 + 224e1a3 commit baea59a

File tree

901 files changed

+18024
-7610
lines changed

Some content is hidden

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

901 files changed

+18024
-7610
lines changed

.github/workflows/submit.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ jobs:
174174
- name: Install dependencies
175175
run: |
176176
sudo apt-get update
177-
sudo apt-get install gcc-9=9.3.0-17ubuntu1~20.04 g++-9=9.3.0-17ubuntu1~20.04 libxrandr-dev libxtst-dev libcups2-dev libasound2-dev
177+
sudo apt-get install gcc-9=9.4.0-1ubuntu1~20.04.1 g++-9=9.4.0-1ubuntu1~20.04.1 libxrandr-dev libxtst-dev libcups2-dev libasound2-dev
178178
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 --slave /usr/bin/g++ g++ /usr/bin/g++-9
179179
180180
- name: Configure
@@ -341,6 +341,7 @@ jobs:
341341
run: >
342342
if ! grep --include=test-summary.txt -lqr build/*/test-results -e "TEST SUCCESS" ; then
343343
cat build/*/test-results/*/text/newfailures.txt ;
344+
cat build/*/test-results/*/text/other_errors.txt ;
344345
exit 1 ;
345346
fi
346347
@@ -495,12 +496,12 @@ jobs:
495496

496497
- name: Install native host dependencies
497498
run: |
498-
sudo apt-get install gcc-9=9.3.0-17ubuntu1~20.04 g++-9=9.3.0-17ubuntu1~20.04 libxrandr-dev libxtst-dev libcups2-dev libasound2-dev
499+
sudo apt-get install gcc-9=9.4.0-1ubuntu1~20.04.1 g++-9=9.4.0-1ubuntu1~20.04.1 libxrandr-dev libxtst-dev libcups2-dev libasound2-dev
499500
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 --slave /usr/bin/g++ g++ /usr/bin/g++-9
500501
if: matrix.debian-arch == ''
501502

502503
- name: Install cross-compilation host dependencies
503-
run: sudo apt-get install gcc-9-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-flavor}}=9.3.0-17ubuntu1~20.04cross2 g++-9-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-flavor}}=9.3.0-17ubuntu1~20.04cross2
504+
run: sudo apt-get install gcc-9-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-flavor}}=9.4.0-1ubuntu1~20.04.1cross2 g++-9-${{ matrix.gnu-arch }}-linux-gnu${{ matrix.gnu-flavor}}=9.4.0-1ubuntu1~20.04.1cross2
504505
if: matrix.debian-arch != ''
505506

506507
- name: Cache sysroot
@@ -809,6 +810,7 @@ jobs:
809810
run: >
810811
if ! grep --include=test-summary.txt -lqr build/*/test-results -e "TEST SUCCESS" ; then
811812
cat build/*/test-results/*/text/newfailures.txt ;
813+
cat build/*/test-results/*/text/other_errors.txt ;
812814
exit 1 ;
813815
fi
814816
@@ -1124,6 +1126,7 @@ jobs:
11241126
run: >
11251127
if ((Get-ChildItem -Path build\*\test-results\test-summary.txt -Recurse | Select-String -Pattern "TEST SUCCESS" ).Count -eq 0) {
11261128
Get-Content -Path build\*\test-results\*\*\newfailures.txt ;
1129+
Get-Content -Path build\*\test-results\*\*\other_errors.txt ;
11271130
exit 1
11281131
}
11291132
@@ -1409,6 +1412,7 @@ jobs:
14091412
run: >
14101413
if ! grep --include=test-summary.txt -lqr build/*/test-results -e "TEST SUCCESS" ; then
14111414
cat build/*/test-results/*/text/newfailures.txt ;
1415+
cat build/*/test-results/*/text/other_errors.txt ;
14121416
exit 1 ;
14131417
fi
14141418

.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=11.0.14.1
4+
version=11.0.15
55

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

make/RunTestsPrebuilt.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ else ifeq ($(OPENJDK_TARGET_OS), macosx)
230230
NUM_CORES := $(shell /usr/sbin/sysctl -n hw.ncpu)
231231
MEMORY_SIZE := $(shell $(EXPR) `/usr/sbin/sysctl -n hw.memsize` / 1024 / 1024)
232232
else ifeq ($(OPENJDK_TARGET_OS), solaris)
233-
NUM_CORES := $(shell LC_MESSAGES=C /usr/sbin/psrinfo -v | $(GREP) -c on-line)
233+
NUM_CORES := $(shell /usr/sbin/psrinfo -v | $(GREP) -c on-line)
234234
MEMORY_SIZE := $(shell \
235235
/usr/sbin/prtconf 2> /dev/null | $(GREP) "^Memory [Ss]ize" | $(AWK) '{print $$3}' \
236236
)

make/RunTestsPrebuiltSpec.gmk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
# Fake minimalistic spec file for RunTestsPrebuilt.gmk.
2828
################################################################################
2929

30+
# Make sure all shell commands are executed with the C locale
31+
export LC_ALL := C
32+
3033
define VerifyVariable
3134
ifeq ($$($1), )
3235
$$(info Error: Variable $1 is missing, needed by RunTestPrebuiltSpec.gmk)

make/autoconf/basics.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ AC_DEFUN_ONCE([BASIC_INIT],
405405
# Save the path variable before it gets changed
406406
ORIGINAL_PATH="$PATH"
407407
AC_SUBST(ORIGINAL_PATH)
408-
DATE_WHEN_CONFIGURED=`LANG=C date`
408+
DATE_WHEN_CONFIGURED=`date`
409409
AC_SUBST(DATE_WHEN_CONFIGURED)
410410
AC_MSG_NOTICE([Configuration created at $DATE_WHEN_CONFIGURED.])
411411
])

make/autoconf/build-aux/config.guess

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/sh
22
#
3-
# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved.
4+
# Copyright (c) 2021, Azul Systems, Inc. All rights reserved.
45
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
56
#
67
# This code is free software; you can redistribute it and/or modify it
@@ -106,6 +107,14 @@ if [ "x$OUT" = x ]; then
106107
fi
107108
fi
108109

110+
# Test and fix cpu on macos-aarch64, uname -p reports arm, buildsys expects aarch64
111+
echo $OUT | grep arm-apple-darwin > /dev/null 2> /dev/null
112+
if test $? = 0; then
113+
if [ `uname -m` = arm64 ]; then
114+
OUT=aarch64`echo $OUT | sed -e 's/[^-]*//'`
115+
fi
116+
fi
117+
109118
# Test and fix cpu on Macosx when C preprocessor is not on the path
110119
echo $OUT | grep i386-apple-darwin > /dev/null 2> /dev/null
111120
if test $? = 0; then

make/autoconf/build-performance.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ AC_DEFUN([BPERF_CHECK_CORES],
3535
FOUND_CORES=yes
3636
elif test -x /usr/sbin/psrinfo; then
3737
# Looks like a Solaris system
38-
NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line`
38+
NUM_CORES=`/usr/sbin/psrinfo -v | grep -c on-line`
3939
FOUND_CORES=yes
4040
elif test -x /usr/sbin/sysctl; then
4141
# Looks like a MacOSX system

make/autoconf/configure

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ fi
4343
export CONFIG_SHELL=$BASH
4444
export _as_can_reexec=no
4545

46+
# Make sure all shell commands are executed with the C locale
47+
export LC_ALL=C
48+
4649
if test "x$CUSTOM_CONFIG_DIR" != x; then
4750
custom_hook=$CUSTOM_CONFIG_DIR/custom-hook.m4
4851
if test ! -e $custom_hook; then

make/autoconf/flags.m4

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,25 @@ AC_DEFUN([FLAGS_SETUP_MACOSX_VERSION],
111111
[
112112
# Additional macosx handling
113113
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
114+
# The expected format for <version> is either nn.n.n or nn.nn.nn. See
115+
# /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/AvailabilityVersions.h
116+
114117
# MACOSX_VERSION_MIN specifies the lowest version of Macosx that the built
115118
# binaries should be compatible with, even if compiled on a newer version
116119
# of the OS. It currently has a hard coded value. Setting this also limits
117120
# exposure to API changes in header files. Bumping this is likely to
118121
# require code changes to build.
119-
MACOSX_VERSION_MIN=10.9.0
122+
if test "x$OPENJDK_TARGET_CPU_ARCH" = xaarch64; then
123+
MACOSX_VERSION_MIN=11.00.00
124+
else
125+
MACOSX_VERSION_MIN=10.9.0
126+
fi
120127
MACOSX_VERSION_MIN_NODOTS=${MACOSX_VERSION_MIN//\./}
121128
122129
AC_SUBST(MACOSX_VERSION_MIN)
123130
124131
# Setting --with-macosx-version-max=<version> makes it an error to build or
125-
# link to macosx APIs that are newer than the given OS version. The expected
126-
# format for <version> is either nn.n.n or nn.nn.nn. See /usr/include/AvailabilityMacros.h.
132+
# link to macosx APIs that are newer than the given OS version.
127133
AC_ARG_WITH([macosx-version-max], [AS_HELP_STRING([--with-macosx-version-max],
128134
[error on use of newer functionality. @<:@macosx@:>@])],
129135
[
@@ -258,6 +264,14 @@ AC_DEFUN_ONCE([FLAGS_PRE_TOOLCHAIN],
258264
fi
259265
fi
260266
267+
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
268+
if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
269+
MACHINE_FLAG="$MACHINE_FLAG -arch arm64"
270+
elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
271+
MACHINE_FLAG="$MACHINE_FLAG -arch x86_64"
272+
fi
273+
fi
274+
261275
# FIXME: global flags are not used yet...
262276
# The "global" flags will *always* be set. Without them, it is not possible to
263277
# get a working compilation.

make/autoconf/hotspot.m4

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2021, 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
@@ -274,6 +274,14 @@ AC_DEFUN_ONCE([HOTSPOT_ENABLE_DISABLE_CDS],
274274
fi
275275
fi
276276
277+
# Disable CDS on macos-aarch64
278+
if test "x$OPENJDK_TARGET_OS" = "xmacosx" && test "x$OPENJDK_TARGET_CPU" = "xaarch64"; then
279+
ENABLE_CDS="false"
280+
if test "x$enable_cds" = "xyes"; then
281+
AC_MSG_ERROR([CDS is currently not supported on macOS/aarch64. Remove --enable-cds.])
282+
fi
283+
fi
284+
277285
AC_SUBST(ENABLE_CDS)
278286
])
279287

@@ -413,7 +421,7 @@ AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES],
413421
# Only enable jvmci on x86_64, sparcv9 and aarch64
414422
if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \
415423
test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \
416-
test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = "xlinux-aarch64" ; then
424+
test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then
417425
AC_MSG_RESULT([yes])
418426
JVM_FEATURES_jvmci="jvmci"
419427
INCLUDE_JVMCI="true"
@@ -444,10 +452,11 @@ AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES],
444452
JVM_FEATURES_graal="graal"
445453
INCLUDE_GRAAL="true"
446454
else
447-
# By default enable graal build on x64 or where AOT is available.
455+
# By default enable graal build on x64/aarch64 or where AOT is available.
448456
# graal build requires jvmci.
449457
if test "x$JVM_FEATURES_jvmci" = "xjvmci" && \
450458
(test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \
459+
test "x$OPENJDK_TARGET_CPU" = "xaarch64" || \
451460
test "x$ENABLE_AOT" = "xtrue") ; then
452461
AC_MSG_RESULT([yes])
453462
JVM_FEATURES_graal="graal"

0 commit comments

Comments
 (0)