Skip to content

Commit a8f04cf

Browse files
committed
jdk-25.0.1-ga, jdk-21.0.9-ga and jdk-17.0.17-ga
1 parent 15a0c1a commit a8f04cf

29 files changed

+135
-72
lines changed

.github/workflows/openjdk-25.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: OpenJDK 25
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'archives.sh'
8+
- 'common.sh'
9+
- 'jdk-25.sh'
10+
- 'patches-25/**'
11+
pull_request:
12+
13+
jobs:
14+
build-on-solaris:
15+
name: Build & Archive on Solaris
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Build project inside Solaris VM
20+
uses: vmactions/[email protected]
21+
with:
22+
release: "11.4-gcc"
23+
usesh: true
24+
sync: nfs
25+
copyback: false
26+
prepare: |
27+
uname -a
28+
run: |
29+
REPO=`pwd`
30+
# avoid problems when building on NFS from Linux
31+
git clone $REPO /var/tmp/openjdk
32+
cd /var/tmp/openjdk
33+
# download bootstrap JDK version
34+
curl -o jdk-24-bootstrap.tar.xz --progress-bar -L https://github.com/psumbera/solaris-openjdk/releases/download/openjdk24-i386-bootstrap/openjdk-24.0.2-bootstrap_SunOS-i386_bin.tar.xz
35+
gtar xf jdk-24-bootstrap.tar.xz
36+
BOOT_JDK=$(pwd)/jdk-24-bootstrap bash jdk-25.sh
37+
./archives.sh
38+
# copy archive back to NFS shared area
39+
mkdir $REPO/archives
40+
mv archives/* $REPO/archives/
41+
42+
- name: Upload Solaris build artifact
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: openjdk-25-latest_SunOS-i386_bin
46+
path: archives/*

bootstrap-lts-jdk.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@ arch=$(uname -m)
1515

1616
if [[ "$VERSION" -eq 17 ]]; then
1717
BOOTSRAP_OPENJDK_URL=${GITHUB_URL}/openjdk${BOOTSTRAP_VERSION}-bootstrap/openjdk-${BOOTSTRAP_VERSION}.0.2-bootstrap_SunOS-`mach`_bin.tar.xz
18-
total_lines=73880
18+
total_lines=`mach | grep i386 > /dev/null && echo 133647 || echo 133139`
1919
elif [[ "$VERSION" -eq 21 && "$arch" == "i86pc" ]]; then
2020
BOOTSRAP_OPENJDK_URL=${GITHUB_URL}/openjdk${BOOTSTRAP_VERSION}-i386-bootstrap/openjdk-${BOOTSTRAP_VERSION}-bootstrap_SunOS-i386_bin.tar.xz
21-
total_lines=101875
21+
total_lines=101891
22+
elif [[ "$VERSION" -eq 25 && "$arch" == "i86pc" ]]; then
23+
BOOTSRAP_OPENJDK_URL=${GITHUB_URL}/openjdk${BOOTSTRAP_VERSION}-i386-bootstrap/openjdk-${BOOTSTRAP_VERSION}.0.2-bootstrap_SunOS-i386_bin.tar.xz
24+
total_lines=126740
2225
else
23-
echo "Only OpenJDK 17 and 21 (i386) versions build is supported." >&2
26+
echo "Only OpenJDK 17, 21 (i386) and 25 (i386) versions builds are supported." >&2
2427
exit 1
2528
fi
2629

jdk-17.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ CONFIGURE_OPTIONS+=" CXX=$GXX"
2020

2121
git clone ${JDK_GITHUB_REPO}/$SRC_DIR "$BUILD_DIR"/$SRC_DIR
2222
cd "$BUILD_DIR"/$SRC_DIR
23-
git checkout jdk-17.0.16-ga
23+
git checkout jdk-17.0.17-ga
2424

2525
apply_patch_series
2626

jdk-21.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ CONFIGURE_OPTIONS+=" DATE=/usr/gnu/bin/date"
2121

2222
git clone ${JDK_GITHUB_REPO}/$SRC_DIR "$BUILD_DIR"/$SRC_DIR
2323
cd "$BUILD_DIR"/$SRC_DIR
24-
git checkout jdk-21.0.8-ga
24+
git checkout jdk-21.0.9-ga
2525

2626
apply_patch_series
2727

jdk-25.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ CONFIGURE_OPTIONS+=" LOCALE=/bin/true"
2222

2323
git clone ${JDK_GITHUB_REPO}/$SRC_DIR "$BUILD_DIR"/$SRC_DIR
2424
cd "$BUILD_DIR"/$SRC_DIR
25-
git checkout jdk-25-ga
25+
git checkout jdk-25.0.1-ga
2626

2727
apply_patch_series
2828

patches-17/0001-8282477-x86-aarch64-vmassert-_last_Java_pc-NULL-alre.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ diff --git a/src/hotspot/share/runtime/thread.cpp b/src/hotspot/share/runtime/th
286286
index 8aed9a450b6..50ecc4d4688 100644
287287
--- a/src/hotspot/share/runtime/thread.cpp
288288
+++ b/src/hotspot/share/runtime/thread.cpp
289-
@@ -1677,7 +1677,7 @@ void JavaThread::check_and_handle_async_exceptions() {
289+
@@ -1676,7 +1676,7 @@ void JavaThread::check_and_handle_async_exceptions() {
290290
void JavaThread::handle_special_runtime_exit_condition(bool check_asyncs) {
291291

292292
if (is_obj_deopt_suspend()) {
@@ -299,7 +299,7 @@ diff --git a/src/hotspot/share/runtime/thread.hpp b/src/hotspot/share/runtime/th
299299
index 9700d6be2a5..9a3fe0efe6e 100644
300300
--- a/src/hotspot/share/runtime/thread.hpp
301301
+++ b/src/hotspot/share/runtime/thread.hpp
302-
@@ -1429,7 +1429,7 @@ class JavaThread: public Thread {
302+
@@ -1428,7 +1428,7 @@ class JavaThread: public Thread {
303303
public:
304304
// Accessing frames
305305
frame last_frame() {

patches-17/0048-8256205-Simplify-compiler-calling-convention-handlin.patch

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ diff --git a/src/hotspot/cpu/aarch64/aarch64.ad b/src/hotspot/cpu/aarch64/aarch6
5252
index a9df812c634..2ec3d26ac81 100644
5353
--- a/src/hotspot/cpu/aarch64/aarch64.ad
5454
+++ b/src/hotspot/cpu/aarch64/aarch64.ad
55-
@@ -4040,13 +4040,6 @@ frame %{
55+
@@ -4035,13 +4035,6 @@ frame %{
5656
// Stack alignment requirement
5757
stack_alignment(StackAlignmentInBytes); // Alignment size in bytes (128-bit -> 16 bytes)
5858

@@ -66,7 +66,7 @@ index a9df812c634..2ec3d26ac81 100644
6666
// Number of outgoing stack slots killed above the out_preserve_stack_slots
6767
// for calls to C. Supports the var-args backing area for register parms.
6868
varargs_C_out_slots_killed(frame::arg_reg_save_area_bytes/BytesPerInt);
69-
@@ -4065,25 +4058,6 @@ frame %{
69+
@@ -4060,25 +4053,6 @@ frame %{
7070
Compile::current()->fixed_slots()),
7171
stack_alignment_in_slots()));
7272

@@ -244,7 +244,7 @@ diff --git a/src/hotspot/cpu/ppc/ppc.ad b/src/hotspot/cpu/ppc/ppc.ad
244244
index 27dad6cff94..8bbbc3d4aa3 100644
245245
--- a/src/hotspot/cpu/ppc/ppc.ad
246246
+++ b/src/hotspot/cpu/ppc/ppc.ad
247-
@@ -3775,8 +3775,6 @@ frame %{
247+
@@ -3776,8 +3776,6 @@ frame %{
248248

249249
stack_alignment(frame::alignment_in_bytes);
250250

@@ -253,7 +253,7 @@ index 27dad6cff94..8bbbc3d4aa3 100644
253253
// Number of outgoing stack slots killed above the
254254
// out_preserve_stack_slots for calls to C. Supports the var-args
255255
// backing area for register parms.
256-
@@ -3801,40 +3799,6 @@ frame %{
256+
@@ -3802,40 +3800,6 @@ frame %{
257257
// 4 what apparently works and saves us some spills.
258258
return_addr(STACK 4);
259259

@@ -971,7 +971,7 @@ index 95369e6272e..ef2b688c7f1 100644
971971
BufferBlob* buf = buffer_blob(); // the temporary code buffer in CodeCache
972972
CodeBuffer buffer(buf);
973973
short buffer_locs[20];
974-
@@ -3075,11 +3074,8 @@ void AdapterHandlerLibrary::create_native_wrapper(const methodHandle& method) {
974+
@@ -3076,11 +3075,8 @@ void AdapterHandlerLibrary::create_native_wrapper(const methodHandle& method) {
975975
assert(si.slots() == total_args_passed, "");
976976
BasicType ret_type = si.return_type();
977977

@@ -985,7 +985,7 @@ index 95369e6272e..ef2b688c7f1 100644
985985

986986
// Generate the compiled-to-native wrapper code
987987
nm = SharedRuntime::generate_native_wrapper(&_masm, method, compile_id, sig_bt, regs, ret_type, critical_entry);
988-
@@ -3123,7 +3119,7 @@ void AdapterHandlerLibrary::create_native_wrapper(const methodHandle& method) {
988+
@@ -3124,7 +3120,7 @@ void AdapterHandlerLibrary::create_native_wrapper(const methodHandle& method) {
989989
VMReg SharedRuntime::name_for_receiver() {
990990
VMRegPair regs;
991991
BasicType sig_bt = T_OBJECT;
@@ -994,7 +994,7 @@ index 95369e6272e..ef2b688c7f1 100644
994994
// Return argument 0 register. In the LP64 build pointers
995995
// take 2 registers, but the VM wants only the 'main' name.
996996
return regs.first();
997-
@@ -3154,7 +3150,7 @@ VMRegPair *SharedRuntime::find_callee_arguments(Symbol* sig, bool has_receiver,
997+
@@ -3155,7 +3151,7 @@ VMRegPair *SharedRuntime::find_callee_arguments(Symbol* sig, bool has_receiver,
998998
assert(cnt < 256, "grow table size");
999999

10001000
int comp_args_on_stack;

patches-17/README-zero.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ any source incompatibilities early.
3030
Configure:
3131

3232
env PATH=/usr/bin:/usr/sbin:/usr/sfw/bin:/usr/gnu/bin bash ./configure \
33-
--enable-unlimited-crypto --with-boot-jdk=/usr/jdk/instances/jdk16 \
33+
--enable-unlimited-crypto --with-boot-jdk=/usr/jdk/instances/jdk17 \
3434
--with-native-debug-symbols=none \
3535
--with-toolchain-type=gcc \
3636
--disable-dtrace \

patches-17/README.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ considerably modified. Cut from the jdk15 patches as of jdk15+32.
33

44
See also README-zero.txt for patches to build a project zero variant.
55

6+
17.0.17
7+
8+
Minor patch noise.
9+
10+
Don't use a fixed 32-bit path to dlopen libXrender
11+
612
17.0.16
713

814
Minor patch noise.

patches-17/Solaris11-EM_486.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
--- openjdk14/src/hotspot/os/solaris/os_solaris.cpp.orig 2021-08-30 09:47:00.387082887 +0000
2-
+++ openjdk14/src/hotspot/os/solaris/os_solaris.cpp 2021-08-30 09:48:20.965475955 +0000
3-
@@ -1438,7 +1438,7 @@
1+
--- src/hotspot/os/solaris/os_solaris.cpp
2+
+++ src/hotspot/os/solaris/os_solaris.cpp
3+
@@ -1235,7 +1235,7 @@
44

55
static const arch_t arch_array[]={
66
{EM_386, EM_386, ELFCLASS32, ELFDATA2LSB, (char*)"IA 32"},

0 commit comments

Comments
 (0)