Improve perf of DelegateConstruct (#16345)
authorAndy Ayers <andya@microsoft.com>
Tue, 13 Feb 2018 03:31:51 +0000 (19:31 -0800)
committerJan Kotas <jkotas@microsoft.com>
Tue, 13 Feb 2018 03:31:51 +0000 (19:31 -0800)
Remove a range lookup that's no longer needed.

See related issue #12438.

src/vm/comdelegate.cpp

index 3f3c553..bd3a46c 100644 (file)
@@ -1736,9 +1736,6 @@ FCIMPL3(void, COMDelegate::DelegateConstruct, Object* refThisUNSAFE, Object* tar
     if (method == NULL)
         COMPlusThrowArgumentNull(W("method"));
 
-    void* pRetAddr = _ReturnAddress();
-    MethodDesc * pCreatorMethod = ExecutionManager::GetCodeMethodDesc((PCODE)pRetAddr);
-
     _ASSERTE(gc.refThis);
     _ASSERTE(method);