From 7a6db74da6ef23bcf32569e7837f1abcacd63078 Mon Sep 17 00:00:00 2001 From: Juan Sebastian Hoyos Ayala Date: Sat, 28 Mar 2026 03:17:51 -0700 Subject: [PATCH] Pass down DJI and MethodDesc to avoid unnecessary PtrHashMap lookup (cherry picked from commit be7a57df61ee6624da0445bb41a9f844ac55c5af) --- src/coreclr/debug/ee/controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/debug/ee/controller.cpp b/src/coreclr/debug/ee/controller.cpp index 52a3fbe68d7024..ccf44cc6937c4e 100644 --- a/src/coreclr/debug/ee/controller.cpp +++ b/src/coreclr/debug/ee/controller.cpp @@ -1457,7 +1457,7 @@ bool DebuggerController::BindPatch(DebuggerControllerPatch *patch, _ASSERTE(g_patches != NULL); CORDB_ADDRESS_TYPE *addr = (CORDB_ADDRESS_TYPE *) - CodeRegionInfo::GetCodeRegionInfo(NULL, NULL, startAddr).OffsetToAddress(patch->offset); + CodeRegionInfo::GetCodeRegionInfo(info, pMD, startAddr).OffsetToAddress(patch->offset); g_patches->BindPatch(patch, addr); LOG((LF_CORDB, LL_INFO10000, "DC::BP:Binding patch at %p (off:0x%zx)\n", addr, patch->offset));