[8u][RFR][1/3] 8145260: Bring j.u.z.ZipFile's native implementation to Java to remove the expensive jni cost and mmap crash risk

Taylor, Ben benty at amazon.com
Thu Nov 12 20:14:09 UTC 2020


Hello,

This backport has been suggested previously[1]
This backport is the first of 3, and should be followed by 8157069[2] and 6233323[3]
for correctness and performance.

The patch was modified to preserve the use of ensuretrailingslash
in ZipFile.getEntry(). This property is not present in jdk 9+.
Its behavior is described in detail by 8185136: Release Note:
java.util.zip.ZipFile.getEntry() now always returns the ZipEntry
instance with a '/' ended entry name for directory entry[4].

This patch includes a new test, TestZipFile.java, and an update
to TestZipError.java. Both tests pass.

https://bugs.openjdk.java.net/browse/JDK-8145260
http://cr.openjdk.java.net/~cverghese/webrevs/8145260/webrev/

Thanks,
--Ben

[1] https://bugs.openjdk.java.net/browse/JDK-8146693
[2] https://bugs.openjdk.java.net/browse/JDK-8157069
[3] https://bugs.openjdk.java.net/browse/JDK-6233323
[4] https://bugs.openjdk.java.net/browse/JDK-8185136


More information about the jdk8u-dev mailing list