Skip to content

Commit

Permalink
Fixed a broken build with STRESS_DYNAMIC_HEAP_COUNT enabled (#105507)
Browse files Browse the repository at this point in the history
* Fixed a broken build with STRESS_DYNAMIC_HEAP_COUNT enabled

* Implemented a diff approach
  • Loading branch information
mrsharm committed Aug 8, 2024
1 parent 9c029c9 commit 105bf4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coreclr/gc/gc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25693,7 +25693,6 @@ void gc_heap::calculate_new_heap_count ()

assert (new_n_heaps >= 1);
assert (new_n_heaps <= actual_n_max_heaps);
#endif //STRESS_DYNAMIC_HEAP_COUNT

if (process_eph_samples_p)
{
Expand All @@ -25720,6 +25719,8 @@ void gc_heap::calculate_new_heap_count ()
dynamic_heap_count_data.processed_gen2_samples_count = dynamic_heap_count_data.current_gen2_samples_count;
}

#endif //STRESS_DYNAMIC_HEAP_COUNT

if (new_n_heaps != n_heaps)
{
dprintf (6666, ("GC#%Id should change! %d->%d (%s)",
Expand Down

0 comments on commit 105bf4d

Please sign in to comment.