diff --git a/src/SOS/Strike/util.cpp b/src/SOS/Strike/util.cpp index 2b2db91c1f..ab8f67eb3a 100644 --- a/src/SOS/Strike/util.cpp +++ b/src/SOS/Strike/util.cpp @@ -4333,7 +4333,7 @@ void GetAllocContextPtrs(AllocInfo *pallocInfo) CLRDATA_ADDRESS allocLimit; ReleaseHolder sos12; - if (SUCCEEDED(g_sos->QueryInterface(__uuidof(ISOSDacInterface12), &sos12)) && + if (SUCCEEDED(g_sos->QueryInterface(__uuidof(ISOSDacInterface12), &sos12)) && SUCCEEDED(sos12->GetGlobalAllocationContext(&allocPtr, &allocLimit)) && allocPtr != 0) { @@ -4822,12 +4822,15 @@ const char * const DMLFormats[] = "%s", // DML_RCWrapper "%s", // DML_CCWrapper "%S", // DML_ManagedVar + "%s", // DML_Async "%s", // DML_IL "%s", // DML_ComWrapperRCW "%s", // DML_ComWrapperCCW "%s", // DML_TaggedMemory }; +static_assert(ARRAY_SIZE(DMLFormats) == Output::DML_Last, "Output types and formats must match in length"); + void ConvertToLower(__out_ecount(len) char *buffer, size_t len) { for (size_t i = 0; i < len && buffer[i]; ++i) diff --git a/src/SOS/Strike/util.h b/src/SOS/Strike/util.h index d301972795..fcde9cd034 100644 --- a/src/SOS/Strike/util.h +++ b/src/SOS/Strike/util.h @@ -526,7 +526,9 @@ namespace Output DML_IL, DML_ComWrapperRCW, DML_ComWrapperCCW, - DML_TaggedMemory + DML_TaggedMemory, + + DML_Last }; /**********************************************************************\