We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60df642 commit d278c46Copy full SHA for d278c46
2 files changed
src/coreclr/vm/classlayoutinfo.cpp
@@ -108,7 +108,7 @@ namespace
108
#ifdef FEATURE_64BIT_ALIGNMENT
109
if (pNestedType.RequiresAlign8())
110
{
111
- placementInfo.m_alignment = max(8u, placementInfo.m_alignment);
+ placementInfo.m_alignment = ALIGN_UP(placementInfo.m_alignment, 8);
112
}
113
#endif // FEATURE_64BIT_ALIGNMENT
114
src/coreclr/vm/methodtablebuilder.cpp
@@ -8604,7 +8604,7 @@ VOID MethodTableBuilder::HandleAutoLayout(MethodTable ** pByValueClassCache)
8604
#if defined(FEATURE_64BIT_ALIGNMENT)
8605
if (pByValueMT->RequiresAlign8())
8606
8607
- alignmentRequirement = max(8, alignmentRequirement);
+ alignmentRequirement = ALIGN_UP(alignmentRequirement, 8);
8608
8609
8610
0 commit comments