Commit 3982b7a7 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Reduce objhead size by overloading.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3770 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 55d42f10
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment