Skip to content

Commit 44b8269

Browse files
committed
Fix white spaces, a typo and one minor type
1 parent 9a138be commit 44b8269

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/coreclr/gc/gc.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13528,7 +13528,7 @@ void gc_heap::distribute_free_regions()
1352813528

1352913529
size_t total_basic_free_regions = total_num_free_regions[basic_free_region] + surplus_regions[basic_free_region].get_num_free_regions();
1353013530
total_budget_in_region_units[basic_free_region] = compute_basic_region_budgets(heap_budget_in_region_units[basic_free_region], min_heap_budget_in_region_units[basic_free_region], total_basic_free_regions);
13531-
13531+
1353213532
bool aggressive_decommit_large_p = joined_last_gc_before_oom || dt_high_memory_load_p() || near_heap_hard_limit_p();
1353313533

1353413534
int region_factor[count_distributed_free_region_kinds] = { 1, LARGE_REGION_FACTOR };
@@ -14530,7 +14530,7 @@ HRESULT gc_heap::initialize_gc (size_t soh_segment_size,
1453014530
GCConfig::SetUOHWaitBGCSizeIncPercent (bgc_uoh_inc_percent_alloc_wait);
1453114531
dprintf (1, ("UOH allocs during BGC are allowed normally when inc ratio is < %.3f, will wait when > %.3f",
1453214532
bgc_uoh_inc_ratio_alloc_normal, bgc_uoh_inc_ratio_alloc_wait));
14533-
#endif
14533+
#endif
1453414534

1453514535
// leave the first page to contain only segment info
1453614536
// because otherwise we could need to revisit the first page frequently in
@@ -32335,7 +32335,7 @@ void gc_heap::decide_on_demotion_pin_surv (heap_segment* region, int* no_pinned_
3233532335
int gen_num = heap_segment_gen_num (region);
3233632336
int new_gen_num = 0;
3233732337
int pinned_surv = heap_segment_pinned_survived (region);
32338-
int promote_pins_p = large_pins_p;
32338+
bool promote_pins_p = large_pins_p;
3233932339

3234032340
if (pinned_surv == 0)
3234132341
{
@@ -32609,7 +32609,7 @@ void gc_heap::process_remaining_regions (int current_plan_gen_num, generation* c
3260932609
}
3261032610

3261132611
#ifdef SIMPLE_DPRINTF
32612-
dprintf (REGIONS_LOG, ("h%d ad_p_d: PL: %zd, SL: %zd, pfr: %.3f, psr: %.3f, prmoote gen1 %d. gen1_pins_left %Id, total surv %Id (p:%Id), total_space %Id",
32612+
dprintf (REGIONS_LOG, ("h%d ad_p_d: PL: %zd, SL: %zd, pfr: %.3f, psr: %.3f, promote gen1 %d. gen1_pins_left %Id, total surv %Id (p:%Id), total_space %Id",
3261332613
heap_number, gen1_pins_left, total_space_to_skip, pin_frag_ratio, pin_surv_ratio, actual_promote_gen1_pins_p, gen1_pins_left,
3261432614
dd_survived_size (dynamic_data_of (max_generation - 1)), dd_pinned_survived_size (dynamic_data_of (max_generation - 1)), total_space_to_skip));
3261532615
#endif

0 commit comments

Comments
 (0)