From 43fd375826fb82600a5d687425e4ad8431ec4e73 Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Fri, 30 Oct 2009 08:42:35 +0000 Subject: Assume 64 byte cachelines when doing Hunk_Alloc. --- source/sys_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/sys_unix.c') diff --git a/source/sys_unix.c b/source/sys_unix.c index f03fd80..c2a5eab 100644 --- a/source/sys_unix.c +++ b/source/sys_unix.c @@ -417,7 +417,7 @@ void *Hunk_Alloc( mempool_t *pool, size_t size ) { void *buf; // round to cacheline - size = ( size + 31 ) & ~31; + size = ( size + 63 ) & ~63; if( pool->cursize + size > pool->maxsize ) { Com_Error( ERR_FATAL, "%s: unable to allocate %"PRIz" bytes out of %"PRIz, __func__, size, pool->maxsize ); -- cgit v1.2.3