diff options
author | glen.beasley%sun.com <devnull@localhost> | 2007-05-03 21:26:04 +0000 |
---|---|---|
committer | glen.beasley%sun.com <devnull@localhost> | 2007-05-03 21:26:04 +0000 |
commit | e9b0abd72a6252473d4514fc04ca403c0675b253 (patch) | |
tree | 88b392c402b1e196b3c52cafac404405d7c5dba7 | |
parent | 7da18b2e0353736f2a7c29ae2213795bb56f64fa (diff) | |
download | nss-hg-e9b0abd72a6252473d4514fc04ca403c0675b253.tar.gz |
369444 sidCacheEntry size forced to 192 bytes r=Nelson,sr=wan-teh
-rw-r--r-- | security/nss/lib/ssl/sslsnce.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/security/nss/lib/ssl/sslsnce.c b/security/nss/lib/ssl/sslsnce.c index b0649f76e..583b500a4 100644 --- a/security/nss/lib/ssl/sslsnce.c +++ b/security/nss/lib/ssl/sslsnce.c @@ -152,11 +152,10 @@ struct sidCacheEntryStr { /* 4 */ SSL3KEAType exchKeyType; /* 4 */ PRInt32 certIndex; /*116 */} ssl3; -#if defined(LINUX) /* XXX Why only on Linux ? */ - struct { - PRUint8 filler[144]; /* XXX why this number ? */ +/* force sizeof(sidCacheEntry) to be a multiple of cache line size */ + struct { +/*120 */ PRUint8 filler[120]; /* 72+120==196, a multiple of 16 */ } forceSize; -#endif } u; }; typedef struct sidCacheEntryStr sidCacheEntry; @@ -1153,11 +1152,7 @@ SSL_ConfigServerSessionIDCacheInstance( cacheDesc *cache, #if defined(DEBUG_nelsonb) printf("sizeof(sidCacheEntry) == %u\n", sizeof(sidCacheEntry)); #endif -#if !(defined(SOLARIS) && defined(i386)) -#ifndef XP_OS2 - PORT_Assert(sizeof(sidCacheEntry) % 8 == 0); -#endif -#endif + PORT_Assert(sizeof(sidCacheEntry) == 192); PORT_Assert(sizeof(certCacheEntry) == 4096); myPid = SSL_GETPID(); |