From 419da3b3d3db3b045d2a505a94e39e91a536d80b Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 16 Feb 2009 13:38:39 +0000 Subject: [PATCH] Reduce objhead size by overloading. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3770 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/hash_slinger.h | 5 ----- 1 file changed, 5 deletions(-) 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 -- 2.39.5