[3.0] d5ee593 Optimize the objhead layout to avoid packing on 64bit systems.
Tollef Fog Heen
tfheen at varnish-cache.org
Wed Aug 17 11:25:22 CEST 2011
commit d5ee593a20f6cd5b09a1a1ec41635522202c1d5f
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