From 39a2a4ccaf186fa38864ce28806d88fdb06ae727 Mon Sep 17 00:00:00 2001 From: rcj1 Date: Thu, 11 Sep 2025 21:00:59 -0700 Subject: [PATCH 1/2] removing conversion from typehandle to methodtable --- src/coreclr/debug/daccess/request.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/coreclr/debug/daccess/request.cpp b/src/coreclr/debug/daccess/request.cpp index b20be8fd8eca41..019ee1b877b9a6 100644 --- a/src/coreclr/debug/daccess/request.cpp +++ b/src/coreclr/debug/daccess/request.cpp @@ -1982,10 +1982,9 @@ ClrDataAccess::GetFieldDescData(CLRDATA_ADDRESS addr, struct DacpFieldDescData * // drag in this data structure in minidump's case. // TypeHandle th = pFieldDesc->LookupFieldTypeHandle(); - MethodTable *pMt = th.GetMethodTable(); - if (pMt) + if (th.m_asTAddr) { - FieldDescData->MTOfType = HOST_CDADDR(th.GetMethodTable()); + FieldDescData->MTOfType = HOST_CDADDR(PTR_MethodTable(th.m_asTAddr)); } else { From 871b88b2245f4ed46b1fbf6642f2aaefb95a5ff9 Mon Sep 17 00:00:00 2001 From: Rachel Date: Thu, 11 Sep 2025 21:04:28 -0700 Subject: [PATCH 2/2] update src/coreclr/debug/daccess/request.cpp --- src/coreclr/debug/daccess/request.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/debug/daccess/request.cpp b/src/coreclr/debug/daccess/request.cpp index 019ee1b877b9a6..aec023946fbfe7 100644 --- a/src/coreclr/debug/daccess/request.cpp +++ b/src/coreclr/debug/daccess/request.cpp @@ -1982,9 +1982,9 @@ ClrDataAccess::GetFieldDescData(CLRDATA_ADDRESS addr, struct DacpFieldDescData * // drag in this data structure in minidump's case. // TypeHandle th = pFieldDesc->LookupFieldTypeHandle(); - if (th.m_asTAddr) + if (th.AsTAddr()) { - FieldDescData->MTOfType = HOST_CDADDR(PTR_MethodTable(th.m_asTAddr)); + FieldDescData->MTOfType = HOST_CDADDR(PTR_MethodTable(th.AsTAddr())); } else {