File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments