Skip to content

Commit a562a9f

Browse files
authored
Set the initial spin count unit to 10 for DATAS. (#105634)
* Set the initial spin count unit to 10 for DATAS * Set initial data count if DATAS is enabled * Set the low initial data count only if datas is enabled * Don't stop the original spin count unit * Fixed nit
1 parent ade568b commit a562a9f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/coreclr/gc/gc.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14376,6 +14376,13 @@ HRESULT gc_heap::initialize_gc (size_t soh_segment_size,
1437614376

1437714377
original_spin_count_unit = yp_spin_count_unit;
1437814378

14379+
#if (defined(MULTIPLE_HEAPS) && defined(DYNAMIC_HEAP_COUNT))
14380+
if ((dynamic_adaptation_mode == dynamic_adaptation_to_application_sizes) && (!gc_heap::spin_count_unit_config_p))
14381+
{
14382+
yp_spin_count_unit = 10;
14383+
}
14384+
#endif // MULTIPLE_HEAPS && DYNAMIC_HEAP_COUNT
14385+
1437914386
#if defined(__linux__)
1438014387
GCToEEInterface::UpdateGCEventStatus(static_cast<int>(GCEventStatus::GetEnabledLevel(GCEventProvider_Default)),
1438114388
static_cast<int>(GCEventStatus::GetEnabledKeywords(GCEventProvider_Default)),

0 commit comments

Comments
 (0)