box: allow slab_alloc_granularity = 4 back
It was disabled in the commit ccfef5fd ("memtx: ignore slab_alloc_granularity < machine word size") to postpone addressing unaligned objects issues. Add PACKED attribute to inform compiler of unaligned objects. We also need to introduce `struct stailq_entry_ptr` to be able to inform compiler that `last` pointer unaligned too. Closes #7422 NO_DOC=internal NO_CHANGELOG=internal
Showing
- src/box/memtx_allocator.h 1 addition, 3 deletionssrc/box/memtx_allocator.h
- src/box/memtx_engine.cc 0 additions, 10 deletionssrc/box/memtx_engine.cc
- src/box/txn.c 1 addition, 1 deletionsrc/box/txn.c
- src/box/vy_log.c 0 additions, 1 deletionsrc/box/vy_log.c
- src/lib/salad/stailq.h 53 additions, 21 deletionssrc/lib/salad/stailq.h
- test/unit/stailq.c 1 addition, 1 deletiontest/unit/stailq.c
Loading
Please register or sign in to comment