Skip to content

Commit bad6f39

Browse files
committed
Let the debugger knows DATAS is on
1 parent 46e4f66 commit bad6f39

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/coreclr/debug/daccess/request_common.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ inline bool IsBackgroundGCEnabled()
113113
return (g_gcDacGlobals->minor_version_number & 2) == 0;
114114
}
115115

116+
inline bool IsDatasEnabled()
117+
{
118+
return (g_gcDacGlobals->minor_version_number & 4) == 0;
119+
}
120+
116121
// Load an instance of dac_gc_heap for the heap pointed by heap.
117122
// Fields that does not exist in the current gc_heap instance is zero initialized.
118123
// Return the dac_gc_heap object.

src/coreclr/gc/gc.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52902,6 +52902,12 @@ void PopulateDacVars(GcDacVars *gcDacVars)
5290252902
#ifndef BACKGROUND_GC
5290352903
gcDacVars->minor_version_number |= 2;
5290452904
#endif //!BACKGROUND_GC
52905+
#ifdef DYNAMIC_HEAP_COUNT
52906+
if (gc_heap::dynamic_adaptation_mode == dynamic_adaptation_to_application_sizes)
52907+
{
52908+
gcDacVars->minor_version_number |= 4;
52909+
}
52910+
#endif //DYNAMIC_HEAP_COUNT
5290552911
gcDacVars->built_with_svr = &g_built_with_svr_gc;
5290652912
gcDacVars->build_variant = &g_build_variant;
5290752913
gcDacVars->gc_structures_invalid_cnt = const_cast<int32_t*>(&GCScan::m_GcStructuresInvalidCnt);

0 commit comments

Comments
 (0)