We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b309f6 commit 0aa8234Copy full SHA for 0aa8234
src/dsm_array.c
@@ -28,7 +28,13 @@ typedef struct DsmConfig
28
29
static DsmConfig *dsm_cfg = NULL;
30
31
-typedef int BlockHeader;
+/*
32
+ * Block header
33
+ *
34
+ * Its size must be 4 bytes for 32bit and 8 bytes for 64bit. Otherwise it could
35
+ * screw up an alignment (for example on Sparc9)
36
+ */
37
+typedef uintptr_t BlockHeader;
38
typedef BlockHeader* BlockHeaderPtr;
39
40
#define FREE_BIT 0x80000000
0 commit comments