Browse Source

MT#55283 fix alloc alignment

We need at least 64 bits for atomic64

Change-Id: I08724d204f2a1603088c8737ca096a4b64314f6b
rfuchs/1989
Richard Fuchs 4 months ago
parent
commit
649e225bc9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/bufferpool.h

+ 1
- 1
lib/bufferpool.h View File

@ -3,7 +3,7 @@
#include "obj.h"
#define BUFFERPOOL_ALIGNMENT (sizeof(void *)) // bytes
#define BUFFERPOOL_ALIGNMENT (MAX(sizeof(void *), 8)) // bytes
#define BUFFERPOOL_ALIGN(x) (((x + BUFFERPOOL_ALIGNMENT - 1) / BUFFERPOOL_ALIGNMENT) * BUFFERPOOL_ALIGNMENT)
#define BUFFERPOOL_SHARD_SIZE ((size_t) (1LL<<24)) // 16 MB, must be a power of two


Loading…
Cancel
Save