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
--- 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 {