Skip to content

Commit 8fdcc0e

Browse files
authored
Merge branch 'openjdk:master' into backport-mrserb-12e6a0b6-master
2 parents 2a85e3d + 5a464d8 commit 8fdcc0e

File tree

97 files changed

+5106
-359
lines changed

Some content is hidden

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

97 files changed

+5106
-359
lines changed

.github/workflows/build-cross-compile.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,33 +60,33 @@ jobs:
6060
gnu-arch: aarch64
6161
debian-arch: arm64
6262
debian-repository: https://httpredir.debian.org/debian/
63-
debian-version: bookworm
63+
debian-version: trixie
6464
tolerate-sysroot-errors: false
6565
- target-cpu: arm
6666
gnu-arch: arm
6767
debian-arch: armhf
6868
debian-repository: https://httpredir.debian.org/debian/
69-
debian-version: bookworm
69+
debian-version: trixie
7070
tolerate-sysroot-errors: false
7171
gnu-abi: eabihf
7272
- target-cpu: s390x
7373
gnu-arch: s390x
7474
debian-arch: s390x
7575
debian-repository: https://httpredir.debian.org/debian/
76-
debian-version: bookworm
76+
debian-version: trixie
7777
tolerate-sysroot-errors: false
7878
- target-cpu: ppc64le
7979
gnu-arch: powerpc64le
8080
debian-arch: ppc64el
8181
debian-repository: https://httpredir.debian.org/debian/
82-
debian-version: bookworm
82+
debian-version: trixie
8383
tolerate-sysroot-errors: false
8484
- target-cpu: riscv64
8585
gnu-arch: riscv64
8686
debian-arch: riscv64
8787
debian-repository: https://httpredir.debian.org/debian/
88-
debian-version: sid
89-
tolerate-sysroot-errors: true
88+
debian-version: trixie
89+
tolerate-sysroot-errors: false
9090

9191
steps:
9292
- name: 'Checkout the JDK source'

doc/building.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ <h3 id="linux">Linux</h3>
476476
<p>The basic tooling is provided as part of the core operating system,
477477
but you will most likely need to install developer packages.</p>
478478
<p>For apt-based distributions (Debian, Ubuntu, etc), try this:</p>
479-
<pre><code>sudo apt-get install build-essential</code></pre>
479+
<pre><code>sudo apt-get install build-essential autoconf</code></pre>
480480
<p>For rpm-based distributions (Fedora, Red Hat, etc), try this:</p>
481481
<pre><code>sudo yum groupinstall &quot;Development Tools&quot;</code></pre>
482482
<p>For Alpine Linux, aside from basic tooling, install the GNU versions

doc/building.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ will most likely need to install developer packages.
289289

290290
For apt-based distributions (Debian, Ubuntu, etc), try this:
291291
```
292-
sudo apt-get install build-essential
292+
sudo apt-get install build-essential autoconf
293293
```
294294

295295
For rpm-based distributions (Fedora, Red Hat, etc), try this:

make/RunTests.gmk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ UseSpecialTestHandler = \
10771077
# Now process each test to run and setup a proper make rule
10781078
$(foreach test, $(TESTS_TO_RUN), \
10791079
$(eval TEST_ID := $(shell $(ECHO) $(strip $(test)) | \
1080-
$(TR) -cs '[a-z][A-Z][0-9]\n' '[_*1000]')) \
1080+
$(TR) -cs '[a-z][A-Z][0-9]\n' '_')) \
10811081
$(eval ALL_TEST_IDS += $(TEST_ID)) \
10821082
$(if $(call UseCustomTestHandler, $(test)), \
10831083
$(eval $(call SetupRunCustomTest, $(TEST_ID), \
@@ -1157,9 +1157,9 @@ run-test-report: post-run-test
11571157
TEST TOTAL PASS FAIL ERROR " "
11581158
$(foreach test, $(TESTS_TO_RUN), \
11591159
$(eval TEST_ID := $(shell $(ECHO) $(strip $(test)) | \
1160-
$(TR) -cs '[a-z][A-Z][0-9]\n' '[_*1000]')) \
1160+
$(TR) -cs '[a-z][A-Z][0-9]\n' '_')) \
11611161
$(ECHO) >> $(TEST_LAST_IDS) $(TEST_ID) $(NEWLINE) \
1162-
$(eval NAME_PATTERN := $(shell $(ECHO) $(test) | $(TR) -c '\n' '[_*1000]')) \
1162+
$(eval NAME_PATTERN := $(shell $(ECHO) $(test) | $(TR) -c '\n' '_')) \
11631163
$(if $(filter __________________________________________________%, $(NAME_PATTERN)), \
11641164
$(eval TEST_NAME := ) \
11651165
$(PRINTF) >> $(TEST_SUMMARY) "%2s %-49s\n" " " "$(test)" $(NEWLINE) \

src/hotspot/os/aix/os_aix.cpp

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 1999, 2023, Oracle and/or its affiliates. All rights reserved.
3-
* Copyright (c) 2012, 2023 SAP SE. All rights reserved.
3+
* Copyright (c) 2012, 2025 SAP SE. 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
@@ -1160,21 +1160,24 @@ static void* dll_load_library(const char *filename, int *eno, char *ebuf, int eb
11601160
// If filename matches <name>.so, and loading fails, repeat with <name>.a.
11611161
void *os::dll_load(const char *filename, char *ebuf, int ebuflen) {
11621162
void* result = nullptr;
1163-
char* const file_path = strdup(filename);
1164-
char* const pointer_to_dot = strrchr(file_path, '.');
11651163
const char old_extension[] = ".so";
11661164
const char new_extension[] = ".a";
1167-
STATIC_ASSERT(sizeof(old_extension) >= sizeof(new_extension));
11681165
// First try to load the existing file.
1169-
int eno=0;
1166+
int eno = 0;
11701167
result = dll_load_library(filename, &eno, ebuf, ebuflen);
1171-
// If the load fails,we try to reload by changing the extension to .a for .so files only.
1168+
// If the load fails, we try to reload by changing the extension to .a for .so files only.
11721169
// Shared object in .so format dont have braces, hence they get removed for archives with members.
1173-
if (result == nullptr && eno == ENOENT && pointer_to_dot != nullptr && strcmp(pointer_to_dot, old_extension) == 0) {
1174-
snprintf(pointer_to_dot, sizeof(old_extension), "%s", new_extension);
1175-
result = dll_load_library(file_path, &eno, ebuf, ebuflen);
1170+
if (result == nullptr && eno == ENOENT) {
1171+
const char* pointer_to_dot = strrchr(filename, '.');
1172+
if (pointer_to_dot != nullptr && strcmp(pointer_to_dot, old_extension) == 0) {
1173+
STATIC_ASSERT(sizeof(old_extension) >= sizeof(new_extension));
1174+
char* tmp_path = os::strdup(filename);
1175+
size_t prefix_size = pointer_delta(pointer_to_dot, filename, 1);
1176+
os::snprintf(tmp_path + prefix_size, sizeof(old_extension), "%s", new_extension);
1177+
result = dll_load_library(tmp_path, &eno, ebuf, ebuflen);
1178+
os::free(tmp_path);
1179+
}
11761180
}
1177-
FREE_C_HEAP_ARRAY(char, file_path);
11781181
return result;
11791182
}
11801183

src/hotspot/share/runtime/abstract_vm_version.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,18 @@ const char* Abstract_VM_Version::internal_vm_info_string() {
250250
#define HOTSPOT_BUILD_COMPILER "MS VC++ 17.7 (VS2022)"
251251
#elif _MSC_VER == 1938
252252
#define HOTSPOT_BUILD_COMPILER "MS VC++ 17.8 (VS2022)"
253+
#elif _MSC_VER == 1939
254+
#define HOTSPOT_BUILD_COMPILER "MS VC++ 17.9 (VS2022)"
255+
#elif _MSC_VER == 1940
256+
#define HOTSPOT_BUILD_COMPILER "MS VC++ 17.10 (VS2022)"
257+
#elif _MSC_VER == 1941
258+
#define HOTSPOT_BUILD_COMPILER "MS VC++ 17.11 (VS2022)"
259+
#elif _MSC_VER == 1942
260+
#define HOTSPOT_BUILD_COMPILER "MS VC++ 17.12 (VS2022)"
261+
#elif _MSC_VER == 1943
262+
#define HOTSPOT_BUILD_COMPILER "MS VC++ 17.13 (VS2022)"
263+
#elif _MSC_VER == 1944
264+
#define HOTSPOT_BUILD_COMPILER "MS VC++ 17.14 (VS2022)"
253265
#else
254266
#define HOTSPOT_BUILD_COMPILER "unknown MS VC++:" XSTR(_MSC_VER)
255267
#endif

src/hotspot/share/runtime/vmThread.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -409,17 +409,17 @@ void VMThread::inner_execute(VM_Operation* op) {
409409
HandleMark hm(VMThread::vm_thread());
410410

411411
const char* const cause = op->cause();
412-
EventMarkVMOperation em("Executing %sVM operation: %s%s%s%s",
413-
prev_vm_operation != nullptr ? "nested " : "",
414-
op->name(),
415-
cause != nullptr ? " (" : "",
416-
cause != nullptr ? cause : "",
417-
cause != nullptr ? ")" : "");
418-
419-
log_debug(vmthread)("Evaluating %s %s VM operation: %s",
420-
prev_vm_operation != nullptr ? "nested" : "",
421-
_cur_vm_operation->evaluate_at_safepoint() ? "safepoint" : "non-safepoint",
422-
_cur_vm_operation->name());
412+
stringStream ss;
413+
ss.print("Executing%s%s VM operation: %s",
414+
prev_vm_operation != nullptr ? " nested" : "",
415+
op->evaluate_at_safepoint() ? " safepoint" : " non-safepoint",
416+
op->name());
417+
if (cause != nullptr) {
418+
ss.print(" (%s)", cause);
419+
}
420+
421+
EventMarkVMOperation em("%s", ss.freeze());
422+
log_debug(vmthread)("%s", ss.freeze());
423423

424424
bool end_safepoint = false;
425425
bool has_timeout_task = (_timeout_task != nullptr);

src/hotspot/share/services/mallocHeader.inline.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ inline OutTypeParam MallocHeader::resolve_checked_impl(InTypeParam memblock) {
104104
OutTypeParam header_pointer = (OutTypeParam)memblock - 1;
105105
if (!header_pointer->check_block_integrity(msg, sizeof(msg), &corruption)) {
106106
header_pointer->print_block_on_error(tty, corruption != nullptr ? corruption : (address)header_pointer);
107-
fatal("NMT corruption: Block at " PTR_FORMAT ": %s", p2i(memblock), msg);
107+
fatal("NMT has detected a memory corruption bug. Block at " PTR_FORMAT ": %s", p2i(memblock), msg);
108108
}
109109
return header_pointer;
110110
}

0 commit comments

Comments
 (0)