RFR: 8299748: java/util/zip/Deinflate.java failing on s390x
Amit Kumar
duke at openjdk.org
Wed Feb 1 08:35:49 UTC 2023
On Mon, 30 Jan 2023 08:03:38 GMT, Amit Kumar <duke at openjdk.org> wrote:
> DeInflate.java test fails on s390x platform because size for out1 array which is responsible for storing the compressed data is insufficient. And being unable to write whole compressed data on array, on s390 whole data can't be recovered after compression. So this fix increase Array size (for s390).
Hi Alan, here is output:
level:0, strategy: 2, dowrap: true
is finished: true
is finished: true
is finished: true
is finished: true is finished: true
level:1, strategy: 0, dowrap: false
is finished: false
m=525312, n=497972, len=524288, eq=false STDERR:
java.lang.RuntimeException: De/inflater failed:java.util.zip.Deflater at 23a0858b
But I guess this behaviour could be explained (by zEDC). On s390x, there is additional instruction present and it could be enabled by setting `DFLTCC=1`. And for accelerator the size of compressed data could go`2 times` the size of actual data. Again this is not deterministic as well, i.e. for same data there could be different valid deflate stream.
-------------
PR: https://git.openjdk.org/jdk/pull/12283
More information about the core-libs-dev
mailing list