diff options
author | danmosemsft <danmose@microsoft.com> | 2017-02-10 17:12:53 -0800 |
---|---|---|
committer | danmosemsft <danmose@microsoft.com> | 2017-02-10 21:36:06 -0800 |
commit | 54891e0650e69f08832f75a40dc102efc6115d38 (patch) | |
tree | 0e032a0b337767801f696cbaeacded267c694f32 /src/vm/ilstubcache.cpp | |
parent | 396f7d43b3c0f3ca7034a6d1d9cd7d6914778a1e (diff) | |
download | coreclr-54891e0650e69f08832f75a40dc102efc6115d38.tar.gz coreclr-54891e0650e69f08832f75a40dc102efc6115d38.tar.bz2 coreclr-54891e0650e69f08832f75a40dc102efc6115d38.zip |
Remove always defined FEATURE_CORECLR
Diffstat (limited to 'src/vm/ilstubcache.cpp')
-rw-r--r-- | src/vm/ilstubcache.cpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/vm/ilstubcache.cpp b/src/vm/ilstubcache.cpp index 9cd904aec7..ff6bdc0335 100644 --- a/src/vm/ilstubcache.cpp +++ b/src/vm/ilstubcache.cpp @@ -531,47 +531,6 @@ MethodDesc* ILStubCache::GetStubMethodDesc( } } -#ifndef FEATURE_CORECLR - // - // Publish ETW events for IL stubs - // - if (bFireETWCacheHitEvent) - { - if (ETW_EVENT_ENABLED(MICROSOFT_WINDOWS_DOTNETRUNTIME_PROVIDER_Context, ILStubCacheHit)) - { - - SString strNamespaceOrClassName, strMethodName, strMethodSignature; - UINT64 uModuleId = 0; - - if (pTargetMD) - { - pTargetMD->GetMethodInfoWithNewSig(strNamespaceOrClassName, strMethodName, strMethodSignature); - uModuleId = (UINT64)pTargetMD->GetModule()->GetAddrModuleID(); - } - - DWORD dwToken = 0; - if (pTargetMD) - dwToken = pTargetMD->GetMemberDef(); - - // - // Truncate string fields. Make sure the whole event is less than 64KB - // - TruncateUnicodeString(strNamespaceOrClassName, ETW_IL_STUB_EVENT_STRING_FIELD_MAXSIZE); - TruncateUnicodeString(strMethodName, ETW_IL_STUB_EVENT_STRING_FIELD_MAXSIZE); - TruncateUnicodeString(strMethodSignature, ETW_IL_STUB_EVENT_STRING_FIELD_MAXSIZE); - - FireEtwILStubCacheHit( - GetClrInstanceId(), // ClrInstanceId - uModuleId, // ModuleIdentifier - (UINT64)pMD, // StubMethodIdentifier - dwToken, // ManagedInteropMethodToken - strNamespaceOrClassName.GetUnicode(), // ManagedInteropMethodNamespace - strMethodName.GetUnicode(), // ManagedInteropMethodName - strMethodSignature.GetUnicode() // ManagedInteropMethodSignature - ); - } - } -#endif // !FEATURE_CORECLR if (!pMD) { |