Skip to content

Commit 5dd761a

Browse files
committed
force 8-byte alignment on heap_iterate_callback_end
1 parent 21d139d commit 5dd761a

File tree

1 file changed

+1
-0
lines changed
  • tools/swift-inspect/Sources/AndroidCLib

1 file changed

+1
-0
lines changed

tools/swift-inspect/Sources/AndroidCLib/heap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ static void heap_iterate_callback(unsigned long base, unsigned long size, void *
6767
}
6868
data[data[NEXT_FREE_IDX]++] = base;
6969
data[data[NEXT_FREE_IDX]++] = size;
70+
__asm__ __volatile__(".align 8");
7071
__asm__ __volatile__(".local heap_iterate_callback_end");
7172
__asm__ __volatile__("heap_iterate_callback_end:");
7273
}

0 commit comments

Comments
 (0)