Skip to content

Commit deeec16

Browse files
authored
JIT: Fix alignment for custom layouts with GC refs in them (#122873)
1 parent 25a64f0 commit deeec16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/jit/async.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ ContinuationLayout AsyncTransformation::LayOutContinuation(BasicBlock*
10921092

10931093
if (layout->IsCustomLayout())
10941094
{
1095-
inf.Alignment = 1;
1095+
inf.Alignment = layout->HasGCPtr() ? TARGET_POINTER_SIZE : 1;
10961096
inf.Size = layout->GetSize();
10971097
}
10981098
else

0 commit comments

Comments
 (0)