r3770 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon Feb 16 14:38:39 CET 2009


Author: phk
Date: 2009-02-16 14:38:39 +0100 (Mon, 16 Feb 2009)
New Revision: 3770

Modified:
   trunk/varnish-cache/bin/varnishd/hash_slinger.h
Log:
Reduce objhead size by overloading.


Modified: trunk/varnish-cache/bin/varnishd/hash_slinger.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/hash_slinger.h	2009-02-13 13:43:30 UTC (rev 3769)
+++ trunk/varnish-cache/bin/varnishd/hash_slinger.h	2009-02-16 13:38:39 UTC (rev 3770)
@@ -76,17 +76,12 @@
 	VTAILQ_HEAD(,objcore)	objcs;
 	char			*hash;
 	unsigned char		digest[DIGEST_LEN];
-#ifndef NOT_YET
 	union {
 		VTAILQ_HEAD(, sess)	__u_waitinglist;
 		VTAILQ_ENTRY(objhead)	__u_coollist;
 	} __u;
 #define waitinglist __u.__u_waitinglist
 #define coollist __u.__u_coollist
-#else
-	VTAILQ_HEAD(, sess)	waitinglist;
-	VTAILQ_ENTRY(objhead)	coollist;
-#endif
 
 	/*----------------------------------------------------
 	 * The fields below are for the sole private use of



More information about the varnish-commit mailing list