Skip to content

Commit f607750

Browse files
committed
Add _pad field to frame_descr_long to ensure frame_size is aligned
instead of relying on the C compiler to insert it.
1 parent ec43e50 commit f607750

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ocaml/runtime/caml/stack.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ typedef struct {
105105

106106
typedef struct {
107107
uintnat retaddr;
108-
unsigned short marker; /* frame_size_long */
108+
unsigned short marker; /* LONG_FRAME_MARKER */
109+
unsigned short _pad; /* Ensure frame_size is 4-byte aligned */
109110
uint32_t frame_size;
110111
uint32_t num_live;
111112
uint32_t live_ofs[1 /* num_live */];

0 commit comments

Comments
 (0)