@@ -7309,7 +7309,7 @@ bool gc_heap::virtual_commit (void* address, size_t size, int bucket, int h_numb
7309
7309
assert(bucket != recorded_committed_free_bucket);
7310
7310
#endif //USE_REGIONS
7311
7311
7312
- dprintf(3 , ("commit-accounting: commit in %d [%p, %p) for heap %d", bucket, address, ((uint8_t*)address + size), h_number));
7312
+ STRESS_LOG_VA (1 , ("commit-accounting: commit in %d [%p, %p) for heap %d", bucket, address, ((uint8_t*)address + size), h_number));
7313
7313
bool should_count =
7314
7314
#ifdef USE_REGIONS
7315
7315
true;
@@ -7407,7 +7407,7 @@ void gc_heap::reduce_committed_bytes (void* address, size_t size, int bucket, in
7407
7407
assert(0 <= bucket && bucket < recorded_committed_bucket_counts);
7408
7408
assert(bucket < total_oh_count || h_number == -1);
7409
7409
7410
- dprintf(3 , ("commit-accounting: decommit in %d [%p, %p) for heap %d", bucket, address, ((uint8_t*)address + size), h_number));
7410
+ STRESS_LOG_VA (1 , ("commit-accounting: decommit in %d [%p, %p) for heap %d", bucket, address, ((uint8_t*)address + size), h_number));
7411
7411
7412
7412
#ifndef USE_REGIONS
7413
7413
if (bucket != recorded_committed_ignored_bucket)
@@ -11813,7 +11813,7 @@ void gc_heap::clear_region_info (heap_segment* region)
11813
11813
void gc_heap::return_free_region (heap_segment* region)
11814
11814
{
11815
11815
gc_oh_num oh = heap_segment_oh (region);
11816
- dprintf(3 , ("commit-accounting: from %d to free [%p, %p) for heap %d", oh, get_region_start (region), heap_segment_committed (region), heap_number));
11816
+ STRESS_LOG_VA (1 , ("commit-accounting: from %d to free [%p, %p) for heap %d", oh, get_region_start (region), heap_segment_committed (region), heap_number));
11817
11817
{
11818
11818
size_t committed = heap_segment_committed (region) - get_region_start (region);
11819
11819
if (committed > 0)
@@ -11907,7 +11907,7 @@ heap_segment* gc_heap::get_free_region (int gen_number, size_t size)
11907
11907
gen_number, true);
11908
11908
11909
11909
gc_oh_num oh = gen_to_oh (gen_number);
11910
- dprintf(3 , ("commit-accounting: from free to %d [%p, %p) for heap %d", oh, get_region_start (region), heap_segment_committed (region), heap_number));
11910
+ STRESS_LOG_VA (1 , ("commit-accounting: from free to %d [%p, %p) for heap %d", oh, get_region_start (region), heap_segment_committed (region), heap_number));
11911
11911
{
11912
11912
size_t committed = heap_segment_committed (region) - get_region_start (region);
11913
11913
if (committed > 0)
@@ -24573,7 +24573,7 @@ heap_segment* gc_heap::unlink_first_rw_region (int gen_idx)
24573
24573
dprintf (REGIONS_LOG, ("unlink_first_rw_region on heap: %d gen: %d region: %p", heap_number, gen_idx, heap_segment_mem (region)));
24574
24574
24575
24575
int oh = heap_segment_oh (region);
24576
- dprintf(3 , ("commit-accounting: from %d to temp [%p, %p) for heap %d", oh, get_region_start (region), heap_segment_committed (region), this->heap_number));
24576
+ STRESS_LOG_VA (1 , ("commit-accounting: from %d to temp [%p, %p) for heap %d", oh, get_region_start (region), heap_segment_committed (region), this->heap_number));
24577
24577
#ifdef _DEBUG
24578
24578
size_t committed = heap_segment_committed (region) - get_region_start (region);
24579
24579
if (committed > 0)
@@ -24610,7 +24610,7 @@ void gc_heap::thread_rw_region_front (int gen_idx, heap_segment* region)
24610
24610
dprintf (REGIONS_LOG, ("thread_rw_region_front on heap: %d gen: %d region: %p", heap_number, gen_idx, heap_segment_mem (region)));
24611
24611
24612
24612
int oh = heap_segment_oh (region);
24613
- dprintf(3 , ("commit-accounting: from temp to %d [%p, %p) for heap %d", oh, get_region_start (region), heap_segment_committed (region), this->heap_number));
24613
+ STRESS_LOG_VA (1 , ("commit-accounting: from temp to %d [%p, %p) for heap %d", oh, get_region_start (region), heap_segment_committed (region), this->heap_number));
24614
24614
#ifdef _DEBUG
24615
24615
size_t committed = heap_segment_committed (region) - get_region_start (region);
24616
24616
assert (heap_segment_heap (region) == nullptr);
@@ -24752,7 +24752,7 @@ void gc_heap::equalize_promoted_bytes(int condemned_gen_number)
24752
24752
assert (heap_segment_heap (start_region) == nullptr && hp != nullptr);
24753
24753
int oh = heap_segment_oh (start_region);
24754
24754
size_t committed = heap_segment_committed (start_region) - get_region_start (start_region);
24755
- dprintf(3 , ("commit-accounting: from temp to %d [%p, %p) for heap %d", oh, get_region_start (start_region), heap_segment_committed (start_region), hp->heap_number));
24755
+ STRESS_LOG_VA (1 , ("commit-accounting: from temp to %d [%p, %p) for heap %d", oh, get_region_start (start_region), heap_segment_committed (start_region), hp->heap_number));
24756
24756
#ifdef _DEBUG
24757
24757
g_heaps[hp->heap_number]->committed_by_oh_per_heap[oh] += committed;
24758
24758
#endif //_DEBUG
@@ -26070,7 +26070,7 @@ bool gc_heap::change_heap_count (int new_n_heaps)
26070
26070
size_t committed = heap_segment_committed (region) - get_region_start (region);
26071
26071
if (committed > 0)
26072
26072
{
26073
- dprintf(3 , ("commit-accounting: from %d to %d [%p, %p) for heap %d to heap %d", oh, oh, get_region_start (region), heap_segment_committed (region), i, dest_heap_number));
26073
+ STRESS_LOG_VA (1 , ("commit-accounting: from %d to %d [%p, %p) for heap %d to heap %d", oh, oh, get_region_start (region), heap_segment_committed (region), i, dest_heap_number));
26074
26074
#ifdef _DEBUG
26075
26075
assert (hp->committed_by_oh_per_heap[oh] >= committed);
26076
26076
hp->committed_by_oh_per_heap[oh] -= committed;
@@ -47495,10 +47495,6 @@ void gc_heap::verify_committed_bytes_per_heap()
47495
47495
47496
47496
void gc_heap::verify_committed_bytes()
47497
47497
{
47498
- #ifndef USE_REGIONS
47499
- // TODO, https://github.com/dotnet/runtime/issues/102706, re-enable the testing after fixing this bug
47500
- return;
47501
- #endif //!USE_REGIONS
47502
47498
size_t total_committed = 0;
47503
47499
size_t committed_decommit; // unused
47504
47500
size_t committed_free; // unused
0 commit comments