Skip to content

Commit d832ba5

Browse files
committed
slab: Stop packing slab.c
It caused unaligned pointers into struct osdp_pd and rust does not like unaligned poiters. It also hurts perforamnce in those systems. Signed-off-by: Siddharth Chandrasekaran <sidcha.dev@gmail.com>
1 parent 7762230 commit d832ba5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/slab.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
#include <utils/slab.h>
1212

13-
PACK(struct slab_unit {
13+
struct slab_unit {
1414
uint32_t leased;
1515
uint32_t canary;
1616
uint8_t data[];
17-
});
17+
};
1818

1919
int slab_init(slab_t *slab, size_t slab_size,
2020
uint8_t *blob, size_t blob_size)

0 commit comments

Comments
 (0)