#include <babeltrace/babeltrace-internal.h>
#include <babeltrace/align.h>
+#define OBJSTACK_ALIGN 8 /* Object stack alignment */
#define OBJSTACK_INIT_LEN 128
#define OBJSTACK_POISON 0xcc
struct bt_list_head node;
size_t len;
size_t used_len;
- char __attribute__ ((aligned (sizeof(void *)))) data[];
+ char __attribute__ ((aligned (OBJSTACK_ALIGN))) data[];
};
BT_HIDDEN
struct objstack_node *last_node;
void *p;
- len = ALIGN(len, sizeof(void *));
+ len = ALIGN(len, OBJSTACK_ALIGN);
/* Get last node */
last_node = bt_list_entry(objstack->head.prev,