Skip to content
Merged
Changes from 1 commit
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
Next Next commit
Handle objects from frozen segments in GCHeap::IsEphemeral
  • Loading branch information
EgorBo committed Jul 30, 2022
commit 3358c62500c22797f373a40fda1482703a6088fb
7 changes: 7 additions & 0 deletions src/coreclr/gc/gc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44690,6 +44690,13 @@ unsigned int GCHeap::GetGenerationWithRange (Object* object, uint8_t** ppStart,
bool GCHeap::IsEphemeral (Object* object)
{
uint8_t* o = (uint8_t*)object;
#if defined(FEATURE_BASICFREEZE) && defined(USE_REGIONS)
if (!is_in_heap_range(o))
{
// Objects in frozen segments are not ephemeral
return FALSE;
}
#endif
gc_heap* hp = gc_heap::heap_of (o);
return !!hp->ephemeral_pointer_p (o);
}
Expand Down