Skip to content

Commit 7a0f631

Browse files
authored
Merge pull request #2222 from RealCLanger/sapmachine26-prepare
SapMachine (26) #2221: Prepare SapMachine Release 26.0.1
2 parents 8f7d1f3 + 6eb74f8 commit 7a0f631

57 files changed

Lines changed: 4653 additions & 3596 deletions

Some content is hidden

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

make/autoconf/lib-bundled.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ AC_DEFUN_ONCE([LIB_SETUP_ZLIB],
267267
LIBZ_LIBS=""
268268
if test "x$USE_EXTERNAL_LIBZ" = "xfalse"; then
269269
LIBZ_CFLAGS="$LIBZ_CFLAGS -I$TOPDIR/src/java.base/share/native/libzip/zlib"
270-
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
271-
LIBZ_CFLAGS="$LIBZ_CFLAGS -DHAVE_UNISTD_H"
270+
if test "x$OPENJDK_TARGET_OS" = xmacosx -o "x$OPENJDK_TARGET_OS" = xaix -o "x$OPENJDK_TARGET_OS" = xlinux; then
271+
LIBZ_CFLAGS="$LIBZ_CFLAGS -DHAVE_UNISTD_H=1 -DHAVE_STDARG_H=1"
272272
fi
273273
else
274274
LIBZ_LIBS="-lz"

make/conf/version-numbers.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828

2929
DEFAULT_VERSION_FEATURE=26
3030
DEFAULT_VERSION_INTERIM=0
31-
DEFAULT_VERSION_UPDATE=0
31+
DEFAULT_VERSION_UPDATE=1
3232
DEFAULT_VERSION_PATCH=0
3333
DEFAULT_VERSION_EXTRA1=0
3434
DEFAULT_VERSION_EXTRA2=0
3535
DEFAULT_VERSION_EXTRA3=0
36-
DEFAULT_VERSION_DATE=2026-03-17
36+
DEFAULT_VERSION_DATE=2026-04-21
3737
DEFAULT_VERSION_CLASSFILE_MAJOR=70 # "`$EXPR $DEFAULT_VERSION_FEATURE + 44`"
3838
DEFAULT_VERSION_CLASSFILE_MINOR=0
3939
DEFAULT_VERSION_DOCS_API_SINCE=11

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 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
@@ -257,6 +257,7 @@ ifeq ($(ENABLE_HEADLESS_ONLY), false)
257257
DISABLED_WARNINGS_microsoft_dgif_lib.c := 4018 4267, \
258258
DISABLED_WARNINGS_microsoft_splashscreen_impl.c := 4018 4267 4244, \
259259
DISABLED_WARNINGS_microsoft_splashscreen_png.c := 4267, \
260+
DISABLED_WARNINGS_microsoft_pngread.c := 4146, \
260261
DISABLED_WARNINGS_microsoft_splashscreen_sys.c := 4267 4244, \
261262
LDFLAGS := $(ICONV_LDFLAGS), \
262263
LDFLAGS_windows := -delayload:user32.dll, \

src/hotspot/cpu/ppc/c1_LIRAssembler_ppc.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,6 @@ void LIR_Assembler::osr_entry() {
176176
// Restore.
177177
__ sub_const_optimized(OSR_buf, OSR_buf, locals_space);
178178
}
179-
180-
if (use_OSR_bias) {
181-
// Restore.
182-
__ sub_const_optimized(OSR_buf, OSR_buf, locals_space);
183-
}
184179
}
185180
}
186181

src/java.base/share/legal/zlib.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
## zlib v1.3.1
1+
## zlib v1.3.2
22

33
### zlib License
44
<pre>
55

6-
Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler
6+
Copyright (C) 1995-2026 Jean-loup Gailly and Mark Adler
77

88
This software is provided 'as-is', without any express or implied
99
warranty. In no event will the authors be held liable for any damages

src/java.base/share/native/libzip/zlib/ChangeLog

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,57 @@
11

22
ChangeLog file for zlib
33

4+
Changes in 1.3.2 (17 Feb 2026)
5+
- Continued rewrite of CMake build [Vollstrecker]
6+
- Various portability improvements
7+
- Various github workflow additions and improvements
8+
- Check for negative lengths in crc32_combine functions
9+
- Copy only the initialized window contents in inflateCopy
10+
- Prevent the use of insecure functions without an explicit request
11+
- Add compressBound_z and deflateBound_z functions for large values
12+
- Use atomics to build inflate fixed tables once
13+
- Add definition of ZLIB_INSECURE to build tests with c89 and c94
14+
- Add --undefined option to ./configure for UBSan checker
15+
- Copy only the initialized deflate state in deflateCopy
16+
- Zero inflate state on allocation
17+
- Remove untgz from contrib
18+
- Add _z versions of the compress and uncompress functions
19+
- Vectorize the CRC-32 calculation on the s390x
20+
- Set bit 11 of the zip header flags in minizip if UTF-8
21+
- Update OS/400 support
22+
- Add a test to configure to check for a working compiler
23+
- Check for invalid NULL pointer inputs to zlib operations
24+
- Add --mandir to ./configure to specify manual directory
25+
- Add LICENSE.Info-Zip to contrib/minizip
26+
- Remove vstudio projects in lieu of cmake-generated projects
27+
- Replace strcpy() with memcpy() in contrib/minizip
28+
29+
Changes in 1.3.1.2 (8 Dec 2025)
30+
- Improve portability to RISC OS
31+
- Permit compiling contrib/minizip/unzip.c with decryption
32+
- Enable build of shared library on AIX
33+
- Make deflateBound() more conservative and handle Z_STREAM_END
34+
- Add zipAlreadyThere() to minizip zip.c to help avoid duplicates
35+
- Make z_off_t 64 bits by default
36+
- Add deflateUsed() function to get the used bits in the last byte
37+
- Avoid out-of-bounds pointer arithmetic in inflateCopy()
38+
- Add Haiku to configure for proper LDSHARED settings
39+
- Add Bazel targets
40+
- Complete rewrite of CMake build [Vollstrecker]
41+
- Clarify the use of errnum in gzerror()
42+
- Note that gzseek() requests are deferred until the next operation
43+
- Note the use of gzungetc() to run a deferred seek while reading
44+
- Fix bug in inflatePrime() for 16-bit ints
45+
- Add a "G" option to force gzip, disabling transparency in gzread()
46+
- Improve the discrimination between trailing garbage and bad gzip
47+
- Allow gzflush() to write empty gzip members
48+
- Remove redundant frees of point list on error in examples/zran.c
49+
- Clarify the use of inflateGetHeader()
50+
- Update links to the RFCs
51+
- Return all available uncompressed data on error in gzread.c
52+
- Support non-blocking devices in the gz* routines
53+
- Various other small improvements
54+
455
Changes in 1.3.1 (22 Jan 2024)
556
- Reject overflows of zip header fields in minizip
657
- Fix bug in inflateSync() for data held in bit buffer

src/java.base/share/native/libzip/zlib/README

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
ZLIB DATA COMPRESSION LIBRARY
22

3-
zlib 1.3.1 is a general purpose data compression library. All the code is
4-
thread safe. The data format used by the zlib library is described by RFCs
5-
(Request for Comments) 1950 to 1952 in the files
6-
http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and
7-
rfc1952 (gzip format).
3+
zlib 1.3.2 is a general purpose data compression library. All the code is
4+
thread safe (though see the FAQ for caveats). The data format used by the zlib
5+
library is described by RFCs (Request for Comments) 1950 to 1952 at
6+
https://datatracker.ietf.org/doc/html/rfc1950 (zlib format), rfc1951 (deflate
7+
format) and rfc1952 (gzip format).
88

99
All functions of the compression library are documented in the file zlib.h
1010
(volunteer to write man pages welcome, contact [email protected]). A usage example
@@ -21,17 +21,17 @@ make_vms.com.
2121

2222
Questions about zlib should be sent to <[email protected]>, or to Gilles Vollant
2323
<[email protected]> for the Windows DLL version. The zlib home page is
24-
http://zlib.net/ . Before reporting a problem, please check this site to
24+
https://zlib.net/ . Before reporting a problem, please check this site to
2525
verify that you have the latest version of zlib; otherwise get the latest
2626
version and check whether the problem still exists or not.
2727

28-
PLEASE read the zlib FAQ http://zlib.net/zlib_faq.html before asking for help.
28+
PLEASE read the zlib FAQ https://zlib.net/zlib_faq.html before asking for help.
2929

3030
Mark Nelson <[email protected]> wrote an article about zlib for the Jan. 1997
3131
issue of Dr. Dobb's Journal; a copy of the article is available at
32-
https://marknelson.us/posts/1997/01/01/zlib-engine.html .
32+
https://zlib.net/nelson/ .
3333

34-
The changes made in version 1.3.1 are documented in the file ChangeLog.
34+
The changes made in version 1.3.2 are documented in the file ChangeLog.
3535

3636
Unsupported third party contributions are provided in directory contrib/ .
3737

@@ -43,9 +43,9 @@ can be found at https://github.com/pmqs/IO-Compress .
4343

4444
A Python interface to zlib written by A.M. Kuchling <[email protected]> is
4545
available in Python 1.5 and later versions, see
46-
http://docs.python.org/library/zlib.html .
46+
https://docs.python.org/3/library/zlib.html .
4747

48-
zlib is built into tcl: http://wiki.tcl.tk/4610 .
48+
zlib is built into tcl: https://wiki.tcl-lang.org/page/zlib .
4949

5050
An experimental package to read and write files in .zip format, written on top
5151
of zlib by Gilles Vollant <[email protected]>, is available in the
@@ -69,9 +69,7 @@ Notes for some targets:
6969
- zlib doesn't work on HP-UX 9.05 with some versions of /bin/cc. It works with
7070
other compilers. Use "make test" to check your compiler.
7171

72-
- gzdopen is not supported on RISCOS or BEOS.
73-
74-
- For PalmOs, see http://palmzlib.sourceforge.net/
72+
- For PalmOs, see https://palmzlib.sourceforge.net/
7573

7674

7775
Acknowledgments:
@@ -83,7 +81,7 @@ Acknowledgments:
8381

8482
Copyright notice:
8583

86-
(C) 1995-2024 Jean-loup Gailly and Mark Adler
84+
(C) 1995-2026 Jean-loup Gailly and Mark Adler
8785

8886
This software is provided 'as-is', without any express or implied
8987
warranty. In no event will the authors be held liable for any damages

src/java.base/share/native/libzip/zlib/compress.c

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424

2525
/* compress.c -- compress a memory buffer
26-
* Copyright (C) 1995-2005, 2014, 2016 Jean-loup Gailly, Mark Adler
26+
* Copyright (C) 1995-2026 Jean-loup Gailly, Mark Adler
2727
* For conditions of distribution and use, see copyright notice in zlib.h
2828
*/
2929

@@ -42,13 +42,19 @@
4242
compress2 returns Z_OK if success, Z_MEM_ERROR if there was not enough
4343
memory, Z_BUF_ERROR if there was not enough room in the output buffer,
4444
Z_STREAM_ERROR if the level parameter is invalid.
45+
46+
The _z versions of the functions take size_t length arguments.
4547
*/
46-
int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source,
47-
uLong sourceLen, int level) {
48+
int ZEXPORT compress2_z(Bytef *dest, z_size_t *destLen, const Bytef *source,
49+
z_size_t sourceLen, int level) {
4850
z_stream stream;
4951
int err;
5052
const uInt max = (uInt)-1;
51-
uLong left;
53+
z_size_t left;
54+
55+
if ((sourceLen > 0 && source == NULL) ||
56+
destLen == NULL || (*destLen > 0 && dest == NULL))
57+
return Z_STREAM_ERROR;
5258

5359
left = *destLen;
5460
*destLen = 0;
@@ -67,23 +73,36 @@ int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source,
6773

6874
do {
6975
if (stream.avail_out == 0) {
70-
stream.avail_out = left > (uLong)max ? max : (uInt)left;
76+
stream.avail_out = left > (z_size_t)max ? max : (uInt)left;
7177
left -= stream.avail_out;
7278
}
7379
if (stream.avail_in == 0) {
74-
stream.avail_in = sourceLen > (uLong)max ? max : (uInt)sourceLen;
80+
stream.avail_in = sourceLen > (z_size_t)max ? max :
81+
(uInt)sourceLen;
7582
sourceLen -= stream.avail_in;
7683
}
7784
err = deflate(&stream, sourceLen ? Z_NO_FLUSH : Z_FINISH);
7885
} while (err == Z_OK);
7986

80-
*destLen = stream.total_out;
87+
*destLen = (z_size_t)(stream.next_out - dest);
8188
deflateEnd(&stream);
8289
return err == Z_STREAM_END ? Z_OK : err;
8390
}
84-
91+
int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source,
92+
uLong sourceLen, int level) {
93+
int ret;
94+
z_size_t got = *destLen;
95+
ret = compress2_z(dest, &got, source, sourceLen, level);
96+
*destLen = (uLong)got;
97+
return ret;
98+
}
8599
/* ===========================================================================
86100
*/
101+
int ZEXPORT compress_z(Bytef *dest, z_size_t *destLen, const Bytef *source,
102+
z_size_t sourceLen) {
103+
return compress2_z(dest, destLen, source, sourceLen,
104+
Z_DEFAULT_COMPRESSION);
105+
}
87106
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source,
88107
uLong sourceLen) {
89108
return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION);
@@ -93,7 +112,12 @@ int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source,
93112
If the default memLevel or windowBits for deflateInit() is changed, then
94113
this function needs to be updated.
95114
*/
115+
z_size_t ZEXPORT compressBound_z(z_size_t sourceLen) {
116+
z_size_t bound = sourceLen + (sourceLen >> 12) + (sourceLen >> 14) +
117+
(sourceLen >> 25) + 13;
118+
return bound < sourceLen ? (z_size_t)-1 : bound;
119+
}
96120
uLong ZEXPORT compressBound(uLong sourceLen) {
97-
return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) +
98-
(sourceLen >> 25) + 13;
121+
z_size_t bound = compressBound_z(sourceLen);
122+
return (uLong)bound != bound ? (uLong)-1 : (uLong)bound;
99123
}

0 commit comments

Comments
 (0)