Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/coreclr/runtime/amd64/AllocFast.S
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,11 @@ LEAF_END RhpNewArrayFast, _TEXT
LEAF_ENTRY RhpNewPtrArrayFast, _TEXT

// Delegate overflow handling to the generic helper conservatively
// The constant 0x8000000 is (0x40000000 / sizeof(void*))
// Some assemblers don't like an expression here, so the
// constant expression is reduced to it's simple form.

cmp rsi, (0x40000000 / 8) // sizeof(void*)
cmp rsi, 0x8000000 // (0x40000000 / 8)
jae C_FUNC(RhpNewArrayFast)

// In this case we know the element size is sizeof(void *), or 8 for x64
Expand Down
Loading