Skip to content
Merged
29 changes: 24 additions & 5 deletions src/SOS/Strike/strike.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@ DECLARE_API(DumpMT)
}

EnableDMLHolder dmlHolder(dml);
TableOutput table(2, 16, AlignLeft, false);
TableOutput table(2, 20, AlignLeft, false);

if (nArg == 0)
{
Expand Down Expand Up @@ -1326,6 +1326,25 @@ DECLARE_API(DumpMT)
}
}

ReleaseHolder<ISOSDacInterface8> sos8;
if (SUCCEEDED(Status = g_sos->QueryInterface(__uuidof(ISOSDacInterface8), &sos8)))
{
CLRDATA_ADDRESS assemblyLoadContext = 0;
Status = sos8->GetAssemblyLoadContext(TO_CDADDR(dwStartAddr), &assemblyLoadContext);
if (SUCCEEDED(Status))
{
const char* title = "AssemblyLoadContext:";
if (assemblyLoadContext != 0)
{
table.WriteRow(title, PrefixHex(assemblyLoadContext));
}
else
{
table.WriteRow(title, "Default ALC - The managed instance of this context doesn't exist yet.");
}
}
}

table.WriteRow("BaseSize:", PrefixHex(vMethTable.BaseSize));
table.WriteRow("ComponentSize:", PrefixHex(vMethTable.ComponentSize));
table.WriteRow("DynamicStatics:", vMethTable.bIsDynamic ? "true" : "false");
Expand Down Expand Up @@ -10338,7 +10357,7 @@ DECLARE_API(EEVersion)
else
ExtOut("Workstation mode\n");

if (!GetGcStructuresValid())
if (!GetGcStructuresValid())
{
ExtOut("In plan phase of garbage collection\n");
}
Expand Down Expand Up @@ -15797,7 +15816,7 @@ class EnumMemoryCallback : public ICLRDataEnumMemoryRegionsCallback, ICLRDataLog
}
}
if (IsInterrupt())
{
{
return COR_E_OPERATIONCANCELED;
}
return S_OK;
Expand All @@ -15808,7 +15827,7 @@ class EnumMemoryCallback : public ICLRDataEnumMemoryRegionsCallback, ICLRDataLog
{
ExtOut("%s", message);
if (IsInterrupt())
{
{
return COR_E_OPERATIONCANCELED;
}
return S_OK;
Expand All @@ -15824,7 +15843,7 @@ DECLARE_API(enummem)
if (SUCCEEDED(Status))
{
ToRelease<ICLRDataEnumMemoryRegionsCallback> callback = new EnumMemoryCallback(false, true);
ULONG32 minidumpType =
ULONG32 minidumpType =
(MiniDumpWithPrivateReadWriteMemory |
MiniDumpWithDataSegs |
MiniDumpWithHandleData |
Expand Down