[experimental-ims] 4f59702 Optimize the objhead layout to avoid packing on 64bit systems.

Geoff Simmons geoff at varnish-cache.org
Fri Jul 8 11:47:41 CEST 2011


commit 4f59702c160b0456f2956938b777d86eab9031f4
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Jun 20 08:09:48 2011 +0000

    Optimize the objhead layout to avoid packing on 64bit systems.

diff --git a/bin/varnishd/hash_slinger.h b/bin/varnishd/hash_slinger.h
index b9430c7..2c142cf 100644
--- a/bin/varnishd/hash_slinger.h
+++ b/bin/varnishd/hash_slinger.h
@@ -75,8 +75,8 @@ struct objhead {
 	unsigned		magic;
 #define OBJHEAD_MAGIC		0x1b96615d
 
-	struct lock		mtx;
 	int			refcnt;
+	struct lock		mtx;
 	VTAILQ_HEAD(,objcore)	objcs;
 	unsigned char		digest[DIGEST_LEN];
 	struct waitinglist	*waitinglist;



More information about the varnish-commit mailing list