]> err.no Git - varnish/commitdiff
Reduce objhead size by overloading.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 16 Feb 2009 13:38:39 +0000 (13:38 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 16 Feb 2009 13:38:39 +0000 (13:38 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3770 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/hash_slinger.h

index 1e797f628c37866a4c80eaef4ef6089a58d46f13..3e2c75fff25636045d08e213d8a94e83c916116e 100644 (file)
@@ -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