We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be0226f commit ffeb1e5Copy full SHA for ffeb1e5
1 file changed
core/shared/mem-alloc/ems/ems_gc_internal.h
@@ -13,6 +13,15 @@ extern "C" {
13
#include "bh_platform.h"
14
#include "ems_gc.h"
15
16
+/* Test visibility macro for internal functions */
17
+#ifndef MEM_ALLOC_API_INTER
18
+#ifdef WAMR_BUILD_TEST
19
+#define MEM_ALLOC_API_INTER
20
+#else
21
+#define MEM_ALLOC_API_INTER static
22
+#endif
23
24
+
25
/* HMU (heap memory unit) basic block type */
26
typedef enum hmu_type_enum {
27
HMU_TYPE_MIN = 0,
@@ -87,6 +96,10 @@ hmu_verify(void *vheap, hmu_t *hmu);
87
96
GC_ALIGN_8(HMU_SIZE + OBJ_PREFIX_SIZE + OBJ_SUFFIX_SIZE \
88
97
+ (((x) > 8) ? (x) : 8))
89
98
99
+/* Magic value for aligned allocation detection */
100
+#define ALIGNED_ALLOC_MAGIC_MASK 0xFFFF0000
101
+#define ALIGNED_ALLOC_MAGIC_VALUE 0xA11C0000
102
90
103
/**
91
104
* hmu bit operation
92
105
*/
0 commit comments