Skip to content

Commit 54eec5d

Browse files
authored
Make ILStubGenerated event log ModuleID corresponding to that on other events (#63974)
1 parent 97fec41 commit 54eec5d

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/coreclr/vm/ceeload.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,18 +1985,6 @@ class Module
19851985
return dac_cast<TADDR>(m_ModuleID);
19861986
}
19871987

1988-
SIZE_T * GetAddrModuleID()
1989-
{
1990-
LIMITED_METHOD_CONTRACT;
1991-
return (SIZE_T*) &m_ModuleID;
1992-
}
1993-
1994-
static SIZE_T GetOffsetOfModuleID()
1995-
{
1996-
LIMITED_METHOD_CONTRACT;
1997-
return offsetof(Module, m_ModuleID);
1998-
}
1999-
20001988
PTR_DomainLocalModule GetDomainLocalModule();
20011989

20021990
// LoaderHeap for storing IJW thunks

src/coreclr/vm/dllimport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ class ILStubState : public StubState
959959
if (pTargetMD)
960960
{
961961
pTargetMD->GetMethodInfoWithNewSig(strNamespaceOrClassName, strMethodName, strMethodSignature);
962-
uModuleId = (UINT64)pTargetMD->GetModule()->GetAddrModuleID();
962+
uModuleId = (UINT64)(TADDR)pTargetMD->GetModule_NoLogging();
963963
}
964964

965965
//

0 commit comments

Comments
 (0)