Skip to content
Merged
Show file tree
Hide file tree
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
Make special_sweep_p a per heap member (#74625)
  • Loading branch information
cshung committed Oct 5, 2022
commit 396569203a3e41116693ecf826df75b4b7d5310c
6 changes: 4 additions & 2 deletions src/coreclr/gc/gc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2756,8 +2756,6 @@ BOOL gc_heap::fgn_last_gc_was_concurrent = FALSE;

VOLATILE(bool) gc_heap::full_gc_approach_event_set;

bool gc_heap::special_sweep_p = false;

size_t gc_heap::full_gc_counts[gc_type_max];

bool gc_heap::maxgen_size_inc_p = false;
Expand Down Expand Up @@ -2856,6 +2854,8 @@ size_t gc_heap::interesting_mechanism_bits_per_heap[max_gc_mechanism_bits_co

mark_queue_t gc_heap::mark_queue;

bool gc_heap::special_sweep_p = false;

#endif // MULTIPLE_HEAPS

/* end of per heap static initialization */
Expand Down Expand Up @@ -14222,6 +14222,8 @@ gc_heap::init_gc_heap (int h_number)
#ifdef RECORD_LOH_STATE
loh_state_index = 0;
#endif //RECORD_LOH_STATE

special_sweep_p = false;
#endif //MULTIPLE_HEAPS

#ifdef MULTIPLE_HEAPS
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/gc/gcpriv.h
Original file line number Diff line number Diff line change
Expand Up @@ -3852,7 +3852,7 @@ class gc_heap
PER_HEAP_ISOLATED
VOLATILE(bool) full_gc_approach_event_set;

PER_HEAP_ISOLATED
PER_HEAP
bool special_sweep_p;

#ifdef BACKGROUND_GC
Expand Down