瀏覽代碼

Align block header to 32 bytes

Ioannis Koutras 13 年之前
父節點
當前提交
0ff643dd91
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      private-include/block_header.h

+ 1 - 1
private-include/block_header.h

@@ -34,7 +34,7 @@
 #include "linked_lists/linked_lists.h"
 
 /** The header structure of every memory block inside a heap. */
-typedef struct block_header_s {
+typedef struct __attribute__((__aligned__(32))) block_header_s {
     size_t size; /**< The LSB represents the availability of the block (1
                    for used, 0 for free), the rest the size of the data
                    part. */