summaryrefslogtreecommitdiff
path: root/src/vm/dynamicmethod.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/dynamicmethod.cpp')
-rw-r--r--src/vm/dynamicmethod.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vm/dynamicmethod.cpp b/src/vm/dynamicmethod.cpp
index cbf4f63..cbec6ae 100644
--- a/src/vm/dynamicmethod.cpp
+++ b/src/vm/dynamicmethod.cpp
@@ -848,7 +848,7 @@ void DynamicMethodDesc::Destroy()
CONTRACTL_END;
_ASSERTE(IsDynamicMethod());
- LoaderAllocator *pLoaderAllocator = GetLoaderAllocatorForCode();
+ LoaderAllocator *pLoaderAllocator = GetLoaderAllocator();
LOG((LF_BCL, LL_INFO1000, "Level3 - Destroying DynamicMethod {0x%p}\n", this));
if (!m_pSig.IsNull())
@@ -924,8 +924,8 @@ void LCGMethodResolver::RecycleIndCells()
}
// Insert the linked list to the free list of the VirtualCallStubManager of the current domain.
- // We should use GetLoaderAllocatorForCode because that is where the ind cell was allocated.
- LoaderAllocator *pLoaderAllocator = GetDynamicMethod()->GetLoaderAllocatorForCode();
+ // We should use GetLoaderAllocator because that is where the ind cell was allocated.
+ LoaderAllocator *pLoaderAllocator = GetDynamicMethod()->GetLoaderAllocator();
VirtualCallStubManager *pMgr = pLoaderAllocator->GetVirtualCallStubManager();
pMgr->InsertIntoRecycledIndCellList_Locked(cellhead, cellcurr);
m_UsedIndCellList = NULL;