Native zlib libraries
ahughes at redhat.com
Fri Jul 27 10:37:39 PDT 2012
----- Original Message -----
> The zip64 support (total_in/out) part probably can be done at Java
> the total_in/out in z_tream_s). Need to remove this dependency. Will
> take a look later.
Yes, it seems they still mention the size of total_in/out on the website on the zlib site, and that they shouldn't be relied on:
"Note however that the strm.total_in and strm_total_out counters may be limited to 4 GB. These counters are provided as a convenience and are not used internally by inflate() or deflate(). The application can easily set up its own counters updated after each call of inflate() or deflate() to count beyond 4 GB"
"The word "may" appears several times above since there is a 4 GB limit only if the compiler's long type is 32 bits. If the compiler's long type is 64 bits, then the limit is 16 exabytes."
I notice a test went in with the 64-bit support, but I assume it can't test these counters as the Deflater for a ZipStream is protected. At least, they aren't failing on our builds with system zlib.
Are you actively working on this now or shall I take a look?
> On 7/11/2012 12:47 AM, Alan Bateman wrote:
> > On 05/07/2012 17:11, Andrew Hughes wrote:
> >> ----- Original Message -----
> >>> Is there a way to get the native zlib libraries to get picked up
> >>> instead of the hardcoded version within the JVM?
> >>> --
> >>> Azeem Jiva
> >>> @javawithjiva
> >> We have this in IcedTea (USE_SYSTEM_ZLIB=true) and intend to get
> >> it
> >> upstream.
> >> However, I don't see how this is related to HotSpot, as the zlib
> >> usage
> >> is in the jdk tree.
> > I think we need to (re)start the discussion on core-libs-dev with a
> > view to eliminating the patches that the JDK has to zlib, see:
> > http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/tip/src/share/native/java/util/zip/zlib-1.2.5/patches/ChangeLog_java
> > One of these changes relates to the zip64 support and I believe
> > there
> > are corner cases when inflating or deflating >2GB that won't work
> > if
> > using the system zlib. Sherman will likely recall the details.
> > Given
> > that the new build already supports using the system zlib (at least
> > on
> > Linux) then it would be good to sort this out so that it just
> > works.
> > -Alan
Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07
More information about the distro-pkg-dev