Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit ce97aac

Browse files
Merge pull request #6096 from dotnet-bot/from-tfs
Merge changes from TFS
2 parents 2af3250 + 30720bc commit ce97aac

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/gc/gcee.cpp

100755100644
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ void GCHeap::UpdatePostGCCounters()
119119
#if defined(ENABLE_PERF_COUNTERS) || defined(FEATURE_EVENT_TRACE)
120120
#ifdef MULTIPLE_HEAPS
121121
//take the first heap....
122-
gc_mechanisms *pSettings = &gc_heap::g_heaps[0]->settings;
122+
gc_heap* hp1 = gc_heap::g_heaps[0];
123+
gc_mechanisms *pSettings = &hp1->settings;
123124
#else
125+
gc_heap* hp1 = pGenGCHeap;
124126
gc_mechanisms *pSettings = &gc_heap::settings;
125127
#endif //MULTIPLE_HEAPS
126128

@@ -242,8 +244,8 @@ void GCHeap::UpdatePostGCCounters()
242244
#if defined(ENABLE_PERF_COUNTERS)
243245
for (int gen_index = 0; gen_index <= (max_generation+1); gen_index++)
244246
{
245-
_ASSERTE(FitsIn<size_t>(g_GenerationSizes[gen_index]);
246-
_ASSERTE(FitsIn<size_t>(g_GenerationPromotedSizes[gen_index]);
247+
_ASSERTE(FitsIn<size_t>(g_GenerationSizes[gen_index]));
248+
_ASSERTE(FitsIn<size_t>(g_GenerationPromotedSizes[gen_index]));
247249

248250
if (gen_index == (max_generation+1))
249251
{

0 commit comments

Comments
 (0)