8005466: JAR file entry hash table uses too much memory (zlib_util.c)
authorsherman
Fri, 11 Jan 2013 22:43:29 -0800
changeset 15256 9639ef45ef3e
parent 15020 50394fa17c1b
child 15257 cb0d3aa71c07
8005466: JAR file entry hash table uses too much memory (zlib_util.c) Summary: realign the fields of jzcell struct Reviewed-by: sherman Contributed-by: ioi.lam@oracle.com
jdk/src/share/native/java/util/zip/zip_util.h
--- a/jdk/src/share/native/java/util/zip/zip_util.h	Thu Jan 10 21:52:38 2013 +0000
+++ b/jdk/src/share/native/java/util/zip/zip_util.h	Fri Jan 11 22:43:29 2013 -0800
@@ -177,8 +177,8 @@
  */
 typedef struct jzcell {
     unsigned int hash;    /* 32 bit hashcode on name */
+    unsigned int next;    /* hash chain: index into jzfile->entries */
     jlong cenpos;         /* Offset of central directory file header */
-    unsigned int next;    /* hash chain: index into jzfile->entries */
 } jzcell;
 
 typedef struct cencache {