Skip to content

Commit

Permalink
Fix GetGenerationWithRange when we have a gen 2 object in the ephemer…
Browse files Browse the repository at this point in the history
…al segment (#60189) (#60207)
  • Loading branch information
cshung committed Oct 11, 2021
1 parent 3a81450 commit b1aedd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/coreclr/gc/gc.cpp
Expand Up @@ -43088,6 +43088,7 @@ unsigned int GCHeap::GetGenerationWithRange (Object* object, uint8_t** ppStart,
}
if (generation == -1)
{
generation = max_generation;
*ppStart = heap_segment_mem (hs);
*ppAllocated = *ppReserved = generation_allocation_start (hp->generation_of (max_generation - 1));
}
Expand Down

0 comments on commit b1aedd5

Please sign in to comment.