// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #ifndef __COMReflectionCache_inl__ #define __COMReflectionCache_inl__ #ifndef DACCESS_COMPILE template void ReflectionCache::Init() { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; m_pResult = (CacheTable *)(void *) ::GetAppDomain()->GetLowFrequencyHeap()->AllocMem(S_SIZE_T(CacheSize) * S_SIZE_T(sizeof(CacheTable))); m_pHashTable = (HashTable *)(void *) ::GetAppDomain()->GetLowFrequencyHeap()->AllocMem(S_SIZE_T(CacheSize) * S_SIZE_T(sizeof(HashTable))); for (int i = 0; i < CacheSize; i ++) m_pHashTable[i].slot = -1; } #endif //!DACCESS_COMPILE #endif // __COMReflectionCache_inl__