changeset 5835:d07c9d4269fc

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
author sherman
date Fri, 11 Jan 2013 22:43:29 -0800
parents b6d3fed1f4b5
children 3ddd92f1e684
files src/share/native/java/util/zip/zip_util.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/java/util/zip/zip_util.h	Thu Mar 21 12:37:00 2013 +0000
+++ b/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 {