bool &isNGEN,
IStringHolder* pStrFilename)
{
-#if !defined(FEATURE_PREJIT)
-
- return false;
-
-#else // defined(FEATURE_PREJIT)
-
DD_ENTER_MAY_THROW;
DWORD dwDataSize;
pStrFilename->AssignCopy(wszFilePath);
return ret;
-#endif // !defined(FEATURE_PREJIT)
}
size_t gen_table_size = g_gcDacGlobals->generation_size * (*g_gcDacGlobals->max_gen + 2);
DacEnumMemoryRegion(dac_cast<TADDR>(pHeap), sizeof(dac_gc_heap));
DacEnumMemoryRegion(dac_cast<TADDR>(pHeap->finalize_queue), sizeof(dac_finalize_queue));
- DacEnumMemoryRegion(dac_cast<TADDR>(pHeap->generation_table), gen_table_size);
+
+ TADDR taddrTable = dac_cast<TADDR>(pHeap) + offsetof(dac_gc_heap, generation_table);
+ DacEnumMemoryRegion(taddrTable, gen_table_size);
// enumerating the generations from max (which is normally gen2) to max+1 gives you
// the segment list for all the normal segements plus the large heap segment (max+1)
th = TypeHandle(this);
if (kind == ELEMENT_TYPE_ARRAY)
- rank = ((ArrayTypeDesc*) this)->GetRank();
+ rank = dac_cast<PTR_ArrayTypeDesc>(this)->GetRank();
else if (CorTypeInfo::IsGenericVariable(kind))
- rank = ((TypeVarTypeDesc*) this)->GetIndex();
+ rank = dac_cast<PTR_TypeVarTypeDesc>(this)->GetIndex();
else
rank = 0;