Changeset 696

Show
Ignore:
Timestamp:
02/11/08 05:59:36 (10 months ago)
Author:
dormando
Message:

The memory returned from do_slabs_alloc is currently not properly aligned when compiled in an ILP32 environment. The memory returned is aligned to the size of the pointers, but we need to return a pointer that is suitable aligned so that it may be assigned to a pointer to any type of object.

The cas_id member cause the item-struct to require 8 byte boundaries.
(Trond.Norbye@Sun.COM)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/server/slabs.c

    r591 r696  
    2626#define POWER_LARGEST  200 
    2727#define POWER_BLOCK 1048576 
    28 #define CHUNK_ALIGN_BYTES (sizeof(void *)) 
     28#define CHUNK_ALIGN_BYTES 8 
    2929#define DONT_PREALLOC_SLABS 
    3030