Skip to content

Commit

Permalink
Fix crossgen job.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey committed Jan 21, 2021
1 parent 2b9aa39 commit e6c5cc6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/coreclr/classlibnative/bcltype/varargsnative.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static void InitCommon(VARARGS *data, VASigCookie** cookie)
// Always skip over the varargs_cookie.
const bool isValueType = false;
const bool isFloatHfa = false;
data->ArgPtr += StackElemSize(sizeof(LPVOID), isValueType, isFloatHfa);
data->ArgPtr += StackElemSize(TARGET_POINTER_SIZE, isValueType, isFloatHfa);
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/vm/amd64/cgencpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void R8ToFPSpill(void* pSpillSlot, SIZE_T srcDoubleAsSIZE_T)

inline unsigned StackElemSize(unsigned parmSize, bool isValueType = false /* unused */, bool isFloatHfa = false /* unused */)
{
const unsigned stackSlotSize = sizeof(void*);
const unsigned stackSlotSize = 8;
return ALIGN_UP(parmSize, stackSlotSize);
}

Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/vm/arm/cgencpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ EXTERN_C void setFPReturn(int fpSize, INT64 retVal);

inline unsigned StackElemSize(unsigned parmSize, bool isValueType = false /* unused */, bool isFloatHfa = false /* unused */)
{
const unsigned stackSlotSize = sizeof(void*);
const unsigned stackSlotSize = 4;
return ALIGN_UP(parmSize, stackSlotSize);
}

Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/vm/arm64/cgencpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ inline unsigned StackElemSize(unsigned parmSize, bool isValueType, bool isFloatH
}
#endif

const unsigned stackSlotSize = sizeof(void*);
const unsigned stackSlotSize = 8;
return ALIGN_UP(parmSize, stackSlotSize);
}

Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/vm/i386/cgencpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ EXTERN_C void SinglecastDelegateInvokeStub();

inline unsigned StackElemSize(unsigned parmSize, bool isValueType = false /* unused */, bool isFloatHfa = false /* unused */)
{
const unsigned stackSlotSize = sizeof(void*);
const unsigned stackSlotSize = 4;
return ALIGN_UP(parmSize, stackSlotSize);
}

Expand Down

0 comments on commit e6c5cc6

Please sign in to comment.