Skip to content

Commit 105bf4d

Browse files
authored
Fixed a broken build with STRESS_DYNAMIC_HEAP_COUNT enabled (#105507)
* Fixed a broken build with STRESS_DYNAMIC_HEAP_COUNT enabled * Implemented a diff approach
1 parent 9c029c9 commit 105bf4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/coreclr/gc/gc.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25693,7 +25693,6 @@ void gc_heap::calculate_new_heap_count ()
2569325693

2569425694
assert (new_n_heaps >= 1);
2569525695
assert (new_n_heaps <= actual_n_max_heaps);
25696-
#endif //STRESS_DYNAMIC_HEAP_COUNT
2569725696

2569825697
if (process_eph_samples_p)
2569925698
{
@@ -25720,6 +25719,8 @@ void gc_heap::calculate_new_heap_count ()
2572025719
dynamic_heap_count_data.processed_gen2_samples_count = dynamic_heap_count_data.current_gen2_samples_count;
2572125720
}
2572225721

25722+
#endif //STRESS_DYNAMIC_HEAP_COUNT
25723+
2572325724
if (new_n_heaps != n_heaps)
2572425725
{
2572525726
dprintf (6666, ("GC#%Id should change! %d->%d (%s)",

0 commit comments

Comments
 (0)