Skip to content

Make special_sweep_p a per heap member #74625

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
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 @@ -14118,6 +14118,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