Skip to content

Commit c9a7eac

Browse files
authored
Merge pull request #2211 from SAP/pr-jdk-27+15
Merge to tag jdk-27+15
2 parents edef2e8 + 703660b commit c9a7eac

544 files changed

Lines changed: 15161 additions & 7825 deletions

File tree

Some content is hidden

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

make/autoconf/jdk-options.m4

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
102102
CHECKING_MSG: [if we should build headless-only (no GUI)])
103103
AC_SUBST(ENABLE_HEADLESS_ONLY)
104104
105+
# Avoid headless-only on macOS and Windows, it is not supported there
106+
if test "x$ENABLE_HEADLESS_ONLY" = xtrue; then
107+
if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then
108+
AC_MSG_ERROR([headless-only is not supported on macOS and Windows])
109+
fi
110+
fi
111+
105112
# should we linktime gc unused code sections in the JDK build ?
106113
if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
107114
if test "x$OPENJDK_TARGET_CPU" = "xs390x" || test "x$OPENJDK_TARGET_CPU" = "xppc64le"; then

make/modules/java.desktop/lib/ClientLibraries.gmk

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,8 @@ else
338338
# noexcept-type required for GCC 7 builds. Not required for GCC 8+.
339339
# expansion-to-defined required for GCC 9 builds. Not required for GCC 10+.
340340
# maybe-uninitialized required for GCC 8 builds. Not required for GCC 9+.
341-
# calloc-transposed-args required for GCC 14 builds. (fixed upstream in
342-
# Harfbuzz 032c931e1c0cfb20f18e5acb8ba005775242bd92)
343341
HARFBUZZ_DISABLED_WARNINGS_CXX_gcc := class-memaccess noexcept-type \
344-
expansion-to-defined dangling-reference maybe-uninitialized \
345-
calloc-transposed-args
342+
expansion-to-defined dangling-reference maybe-uninitialized
346343
HARFBUZZ_DISABLED_WARNINGS_clang := missing-field-initializers \
347344
range-loop-analysis unused-variable
348345
HARFBUZZ_DISABLED_WARNINGS_microsoft := 4267 4244

make/modules/jdk.jpackage/Java.gmk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2020, 2026, 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
@@ -29,7 +29,7 @@ DISABLED_WARNINGS_java += dangling-doc-comments
2929

3030
COPY += .gif .png .txt .spec .script .prerm .preinst \
3131
.postrm .postinst .list .sh .desktop .copyright .control .plist .template \
32-
.icns .scpt .wxs .wxl .wxi .wxf .ico .bmp .tiff .service .xsl
32+
.icns .scpt .wxs .wxl .wxi .wxf .ico .bmp .tiff .service .xsl .js
3333

3434
CLEAN += .properties
3535

make/test/JtregNativeJdk.gmk

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2015, 2026, 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
@@ -63,7 +63,8 @@ ifeq ($(call isTargetOs, windows), true)
6363
BUILD_JDK_JTREG_EXCLUDE += libDirectIO.c libInheritedChannel.c \
6464
libExplicitAttach.c libImplicitAttach.c \
6565
exelauncher.c libFDLeaker.c exeFDLeakTester.c \
66-
libChangeSignalDisposition.c exePrintSignalDisposition.c
66+
libChangeSignalDisposition.c exePrintSignalDisposition.c \
67+
libConcNativeFork.c libPipesCloseOnExec.c
6768

6869
#SapMachine 2024-06-12: Exclude libCreateNewProcessGroupOnSpawnTest.c from native compilation on Windows
6970
BUILD_JDK_JTREG_EXCLUDE += libCreateNewProcessGroupOnSpawnTest.c
@@ -80,6 +81,9 @@ else
8081
BUILD_JDK_JTREG_LIBRARIES_LDFLAGS_libLinkerInvokerUnnamed := -pthread
8182
BUILD_JDK_JTREG_LIBRARIES_LDFLAGS_libLinkerInvokerModule := -pthread
8283
BUILD_JDK_JTREG_LIBRARIES_LDFLAGS_libLoaderLookupInvoker := -pthread
84+
BUILD_JDK_JTREG_LIBRARIES_LDFLAGS_libConcNativeFork := -pthread
85+
BUILD_JDK_JTREG_LIBRARIES_LDFLAGS_libPipesCloseOnExec := -pthread
86+
BUILD_JDK_JTREG_LIBRARIES_LDFLAGS_libLoaderLookupInvoker := -pthread
8387

8488
BUILD_JDK_JTREG_LIBRARIES_LDFLAGS_libExplicitAttach := -pthread
8589
BUILD_JDK_JTREG_LIBRARIES_LDFLAGS_libImplicitAttach := -pthread

src/hotspot/cpu/aarch64/aarch64.ad

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2524,10 +2524,6 @@ uint Matcher::float_pressure_limit()
25242524
return (FLOATPRESSURE == -1) ? _FLOAT_REG_mask.size() : FLOATPRESSURE;
25252525
}
25262526

2527-
bool Matcher::use_asm_for_ldiv_by_con(jlong divisor) {
2528-
return false;
2529-
}
2530-
25312527
const RegMask& Matcher::divI_proj_mask() {
25322528
ShouldNotReachHere();
25332529
return RegMask::EMPTY;

src/hotspot/cpu/arm/arm.ad

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright (c) 2008, 2025, Oracle and/or its affiliates. All rights reserved.
2+
// Copyright (c) 2008, 2026, 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
@@ -1112,10 +1112,6 @@ uint Matcher::float_pressure_limit()
11121112
return (FLOATPRESSURE == -1) ? 30 : FLOATPRESSURE;
11131113
}
11141114

1115-
bool Matcher::use_asm_for_ldiv_by_con( jlong divisor ) {
1116-
return false;
1117-
}
1118-
11191115
// Register for DIVI projection of divmodI
11201116
const RegMask& Matcher::divI_proj_mask() {
11211117
ShouldNotReachHere();

src/hotspot/cpu/ppc/assembler_ppc.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,10 +1580,6 @@ class Assembler : public AbstractAssembler {
15801580
static bool is_nop(int x) {
15811581
return x == 0x60000000;
15821582
}
1583-
// endgroup opcode for Power6
1584-
static bool is_endgroup(int x) {
1585-
return is_ori(x) && inv_ra_field(x) == 1 && inv_rs_field(x) == 1 && inv_d1_field(x) == 0;
1586-
}
15871583

15881584

15891585
private:
@@ -1659,9 +1655,6 @@ class Assembler : public AbstractAssembler {
16591655
inline void ori_opt( Register d, int ui16);
16601656
inline void oris_opt(Register d, int ui16);
16611657

1662-
// endgroup opcode for Power6
1663-
inline void endgroup();
1664-
16651658
// count instructions
16661659
inline void cntlzw( Register a, Register s);
16671660
inline void cntlzw_( Register a, Register s);

src/hotspot/cpu/ppc/assembler_ppc.inline.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,6 @@ inline void Assembler::mr( Register d, Register s) { Assembler::orr(d, s,
253253
inline void Assembler::ori_opt( Register d, int ui16) { if (ui16!=0) Assembler::ori( d, d, ui16); }
254254
inline void Assembler::oris_opt(Register d, int ui16) { if (ui16!=0) Assembler::oris(d, d, ui16); }
255255

256-
inline void Assembler::endgroup() { Assembler::ori(R1, R1, 0); }
257-
258256
// count instructions
259257
inline void Assembler::cntlzw( Register a, Register s) { emit_int32(CNTLZW_OPCODE | rta(a) | rs(s) | rc(0)); }
260258
inline void Assembler::cntlzw_( Register a, Register s) { emit_int32(CNTLZW_OPCODE | rta(a) | rs(s) | rc(1)); }

src/hotspot/cpu/ppc/disassembler_ppc.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,6 @@ address Disassembler::decode_instruction0(address here, outputStream * st, addre
119119
} else if (instruction == 0xbadbabe) {
120120
st->print(".data 0xbadbabe");
121121
next = here + Assembler::instr_len(here);
122-
} else if (Assembler::is_endgroup(instruction)) {
123-
st->print("endgroup");
124-
next = here + Assembler::instr_len(here);
125122
} else {
126123
next = here;
127124
}

src/hotspot/cpu/ppc/macroAssembler_ppc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ void MacroAssembler::set_dest_of_bc_far_at(address instruction_addr, address des
483483
// variant 3, far cond branch to the next instruction, already patched to nops:
484484
//
485485
// nop
486-
// endgroup
486+
// nop
487487
// SKIP/DEST:
488488
//
489489
return;
@@ -500,7 +500,7 @@ void MacroAssembler::set_dest_of_bc_far_at(address instruction_addr, address des
500500
if (is_bc_far_variant2_at(instruction_addr) && dest == instruction_addr + 8) {
501501
// Far branch to next instruction: Optimize it by patching nops (produce variant 3).
502502
masm.nop();
503-
masm.endgroup();
503+
masm.nop();
504504
} else {
505505
if (is_bc_far_variant1_at(instruction_addr)) {
506506
// variant 1, the 1st instruction contains the destination address:

0 commit comments

Comments
 (0)