Skip to content

Commit 84bbd7f

Browse files
Merge tag 'jdk-23+6' into labsjdk/automation-1-18-2024-9862
Added tag jdk-23+6 for changeset ff8cc26
2 parents 7df998a + ff8cc26 commit 84bbd7f

File tree

382 files changed

+9739
-7677
lines changed

Some content is hidden

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

382 files changed

+9739
-7677
lines changed

.github/scripts/gen-test-results.sh

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
44
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
#
66
# This code is free software; you can redistribute it and/or modify it
@@ -44,8 +44,8 @@ for test in $failures $errors; do
4444
base_path="$(echo "$test" | tr '#' '_')"
4545
report_file="$report_dir/$base_path.jtr"
4646
hs_err_files=$(ls $report_dir/$base_path/hs_err*.log 2> /dev/null || true)
47+
replay_files=$(ls $report_dir/$base_path/replay*.log 2> /dev/null || true)
4748
echo "#### <a id="$anchor">$test"
48-
4949
echo '<details><summary>View test results</summary>'
5050
echo ''
5151
echo '```'
@@ -73,6 +73,20 @@ for test in $failures $errors; do
7373
echo ''
7474
fi
7575

76+
if [[ "$replay_files" != "" ]]; then
77+
echo '<details><summary>View HotSpot replay file</summary>'
78+
echo ''
79+
for replay in $replay_files; do
80+
echo '```'
81+
echo "$replay:"
82+
echo ''
83+
cat "$replay"
84+
echo '```'
85+
done
86+
87+
echo '</details>'
88+
echo ''
89+
fi
7690
done >> $GITHUB_STEP_SUMMARY
7791

7892
# With many failures, the summary can easily exceed 1024 kB, the limit set by Github

doc/building.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,8 @@ <h3 id="fontconfig">Fontconfig</h3>
753753
<code>sudo apt-get install libfontconfig-dev</code>.</li>
754754
<li>To install on an rpm-based Linux, try running
755755
<code>sudo yum install fontconfig-devel</code>.</li>
756+
<li>To install on Alpine Linux, try running
757+
<code>sudo apk add fontconfig-dev</code>.</li>
756758
</ul>
757759
<p>Use <code>--with-fontconfig-include=&lt;path&gt;</code> and
758760
<code>--with-fontconfig=&lt;path&gt;</code> if <code>configure</code>

doc/building.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ required on all platforms except Windows and macOS.
572572
libfontconfig-dev`.
573573
* To install on an rpm-based Linux, try running `sudo yum install
574574
fontconfig-devel`.
575+
* To install on Alpine Linux, try running `sudo apk add fontconfig-dev`.
575576

576577
Use `--with-fontconfig-include=<path>` and `--with-fontconfig=<path>` if
577578
`configure` does not automatically locate the platform Fontconfig files.

make/RunTests.gmk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,11 +620,16 @@ define SetupRunMicroTestBody
620620
$1_MICRO_WARMUP_TIME := -w $$(MICRO_WARMUP_TIME)
621621
endif
622622

623+
# Microbenchmarks are executed from the root of the test image directory.
624+
# This enables JMH tests to add dependencies using relative paths such as
625+
# -Djava.library.path=micro/native
626+
623627
run-test-$1: pre-run-test
624628
$$(call LogWarn)
625629
$$(call LogWarn, Running test '$$($1_TEST)')
626630
$$(call MakeDir, $$($1_TEST_RESULTS_DIR) $$($1_TEST_SUPPORT_DIR))
627631
$$(call ExecuteWithLog, $$($1_TEST_SUPPORT_DIR)/micro, ( \
632+
$$(CD) $$(TEST_IMAGE_DIR) && \
628633
$$(FIXPATH) $$($1_MICRO_TEST_JDK)/bin/java $$($1_MICRO_JAVA_OPTIONS) \
629634
-jar $$($1_MICRO_BENCHMARKS_JAR) \
630635
$$($1_MICRO_ITER) $$($1_MICRO_FORK) $$($1_MICRO_TIME) \

make/autoconf/toolchain.m4

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2024, 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
@@ -389,6 +389,10 @@ AC_DEFUN_ONCE([TOOLCHAIN_POST_DETECTION],
389389
# This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2"
390390
CFLAGS="$ORG_CFLAGS"
391391
CXXFLAGS="$ORG_CXXFLAGS"
392+
393+
# filter out some unwanted additions autoconf may add to CXX; we saw this on macOS with autoconf 2.72
394+
UTIL_GET_NON_MATCHING_VALUES(cxx_filtered, $CXX, -std=c++11 -std=gnu++11)
395+
CXX="$cxx_filtered"
392396
])
393397

394398
# Check if a compiler is of the toolchain type we expect, and save the version

make/autoconf/util.m4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2024, 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
@@ -199,7 +199,7 @@ AC_DEFUN([UTIL_GET_NON_MATCHING_VALUES],
199199
if test -z "$legal_values"; then
200200
$1="$2"
201201
else
202-
result=`$GREP -Fvx "$legal_values" <<< "$values_to_check" | $GREP -v '^$'`
202+
result=`$GREP -Fvx -- "$legal_values" <<< "$values_to_check" | $GREP -v '^$'`
203203
$1=${result//$'\n'/ }
204204
fi
205205
])
@@ -226,7 +226,7 @@ AC_DEFUN([UTIL_GET_MATCHING_VALUES],
226226
if test -z "$illegal_values"; then
227227
$1=""
228228
else
229-
result=`$GREP -Fx "$illegal_values" <<< "$values_to_check" | $GREP -v '^$'`
229+
result=`$GREP -Fx -- "$illegal_values" <<< "$values_to_check" | $GREP -v '^$'`
230230
$1=${result//$'\n'/ }
231231
fi
232232
])

make/devkit/Tools.gmk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2013, 2024, 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
@@ -548,6 +548,7 @@ $(BUILDDIR)/$(gcc_ver)/Makefile \
548548
$(PATHPRE) $(ENVS) $(GCC_CFG) $(EXTRA_CFLAGS) \
549549
$(CONFIG) \
550550
--with-sysroot=$(SYSROOT) \
551+
--with-debug-prefix-map=$(OUTPUT_ROOT)=devkit \
551552
--enable-languages=c,c++ \
552553
--enable-shared \
553554
--disable-nls \

make/hotspot/lib/CompileJvm.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ CFLAGS_VM_VERSION := \
8585

8686
DISABLED_WARNINGS_gcc := array-bounds comment delete-non-virtual-dtor \
8787
empty-body implicit-fallthrough int-in-bool-context \
88-
maybe-uninitialized missing-field-initializers parentheses \
88+
maybe-uninitialized missing-field-initializers \
8989
shift-negative-value unknown-pragmas
9090

9191
DISABLED_WARNINGS_clang := sometimes-uninitialized \

src/hotspot/cpu/aarch64/nativeInst_aarch64.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include "code/codeCache.hpp"
2929
#include "code/compiledIC.hpp"
3030
#include "gc/shared/collectedHeap.hpp"
31-
#include "memory/resourceArea.hpp"
3231
#include "nativeInst_aarch64.hpp"
3332
#include "oops/oop.inline.hpp"
3433
#include "runtime/handles.hpp"
@@ -189,8 +188,6 @@ void NativeCall::set_destination_mt_safe(address dest, bool assert_lock) {
189188
CompiledICLocker::is_safe(addr_at(0)),
190189
"concurrent code patching");
191190

192-
ResourceMark rm;
193-
int code_size = NativeInstruction::instruction_size;
194191
address addr_call = addr_at(0);
195192
bool reachable = Assembler::reachable_from_branch_at(addr_call, dest);
196193
assert(NativeCall::is_call_at(addr_call), "unexpected code at call site");

src/hotspot/cpu/aarch64/vtableStubs_aarch64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ VtableStub* VtableStubs::create_itable_stub(int itable_index) {
197197
temp_reg, temp_reg2, itable_index, L_no_such_interface);
198198

199199
// Reduce "estimate" such that "padding" does not drop below 8.
200-
const ptrdiff_t estimate = 124;
200+
const ptrdiff_t estimate = 144;
201201
const ptrdiff_t codesize = __ pc() - start_pc;
202202
slop_delta = (int)(estimate - codesize);
203203
slop_bytes += slop_delta;

0 commit comments

Comments
 (0)