Skip to content

Commit

Permalink
Don't set mark array bits for UOH objects during concurrent marking (#…
Browse files Browse the repository at this point in the history
…87533)

marking UOH objects was a historical thing from a policy we had a long time ago. and I had been meaning to get rid of it. a recent workitem we needed to do makes this actually a necessity.
  • Loading branch information
Maoni0 authored Jun 15, 2023
1 parent 795ab6b commit 3afe6bd
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/coreclr/gc/gc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44391,14 +44391,7 @@ CObjectHeader* gc_heap::allocate_uoh_object (size_t jsize, uint32_t flags, int g
uint8_t* current_lowest_address = background_saved_lowest_address;
uint8_t* current_highest_address = background_saved_highest_address;

if ((result < current_highest_address) && (result >= current_lowest_address))
{
dprintf (3, ("Clearing mark bit at address %zx",
(size_t)(&mark_array [mark_word_of (result)])));

mark_array_clear_marked (result);
}
if (current_c_gc_state != c_gc_state_free)
if (current_c_gc_state == c_gc_state_planning)
{
dprintf (3, ("Concurrent allocation of a large object %zx",
(size_t)obj));
Expand Down

0 comments on commit 3afe6bd

Please sign in to comment.