From: phk Date: Mon, 16 Feb 2009 13:38:39 +0000 (+0000) Subject: Reduce objhead size by overloading. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=419da3b3d3db3b045d2a505a94e39e91a536d80b;p=varnish Reduce objhead size by overloading. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3770 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/hash_slinger.h b/varnish-cache/bin/varnishd/hash_slinger.h index 1e797f62..3e2c75ff 100644 --- a/varnish-cache/bin/varnishd/hash_slinger.h +++ b/varnish-cache/bin/varnishd/hash_slinger.h @@ -76,17 +76,12 @@ struct objhead { 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