Skip to content

Commit 5fbe5c4

Browse files
authored
Add some more #ifdef BACKGROUND_GC to enable compilation (#102750)
1 parent 28d35bd commit 5fbe5c4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/coreclr/gc/gc.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18480,6 +18480,7 @@ bool gc_heap::should_retry_other_heap (int gen_number, size_t size)
1848018480
}
1848118481
}
1848218482

18483+
#ifdef BACKGROUND_GC
1848318484
void gc_heap::bgc_record_uoh_allocation(int gen_number, size_t size)
1848418485
{
1848518486
assert((gen_number >= uoh_start_generation) && (gen_number < total_generation_count));
@@ -18502,6 +18503,7 @@ void gc_heap::bgc_record_uoh_allocation(int gen_number, size_t size)
1850218503
uoh_a_no_bgc[gen_number - uoh_start_generation] += size;
1850318504
}
1850418505
}
18506+
#endif //BACKGROUND_GC
1850518507

1850618508
allocation_state gc_heap::allocate_uoh (int gen_number,
1850718509
size_t size,
@@ -50043,6 +50045,7 @@ void gc_heap::check_and_adjust_bgc_tuning (int gen_number, size_t physical_size,
5004350045
}
5004450046
#endif //BGC_SERVO_TUNING
5004550047

50048+
#ifdef BACKGROUND_GC
5004650049
void gc_heap::get_and_reset_uoh_alloc_info()
5004750050
{
5004850051
total_uoh_a_last_bgc = 0;
@@ -50084,6 +50087,7 @@ void gc_heap::get_and_reset_uoh_alloc_info()
5008450087

5008550088
total_uoh_a_last_bgc = total_uoh_a_no_bgc + total_uoh_a_bgc_marking + total_uoh_a_bgc_planning;
5008650089
}
50090+
#endif //BACKGROUND_GC
5008750091

5008850092
bool gc_heap::is_pm_ratio_exceeded()
5008950093
{

src/coreclr/gc/gcpriv.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,9 @@ class gc_heap
17641764

17651765
PER_HEAP_ISOLATED_METHOD void add_to_history();
17661766

1767+
#ifdef BACKGROUND_GC
17671768
PER_HEAP_ISOLATED_METHOD void get_and_reset_uoh_alloc_info();
1769+
#endif //BACKGROUND_GC
17681770

17691771
#ifdef BGC_SERVO_TUNING
17701772
// Currently BGC servo tuning is an experimental feature.

0 commit comments

Comments
 (0)