Skip to content
Prev Previous commit
Next Next commit
Update src/coreclr/vm/gchelpers.cpp
  • Loading branch information
jkotas authored Mar 31, 2024
commit c492da029d87d62a44736a76b86124397234eb68
2 changes: 1 addition & 1 deletion src/coreclr/vm/gchelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ OBJECTREF TryAllocateFrozenSzArray(MethodTable* pArrayMT, INT32 cElements)

// The initial validation is copied from AllocateSzArray impl

if (pArrayMT->Collectible() || (pArrayMT->ContainsPointers() && cElements > 0))
if (pArrayMT->ContainsPointers() && cElements > 0)
{
// We cannot allocate in the frozen heap if:
// - the array type is collectible
Expand Down