//#define STRICT_CLSINITLOCK_ENTRY_LEAK_DETECTION
static const WCHAR DEFAULT_DOMAIN_FRIENDLY_NAME[] = W("DefaultDomain");
-static const WCHAR OTHER_DOMAIN_FRIENDLY_NAME_PREFIX[] = W("Domain");
#define STATIC_OBJECT_TABLE_BUCKET_SIZE 1020
CrstStatic SystemDomain::m_SystemDomainCrst;
CrstStatic SystemDomain::m_DelayedUnloadCrst;
-DWORD SystemDomain::m_dwLowestFreeIndex = 0;
-
// Constructor for the PinnedHeapHandleBucket class.
PinnedHeapHandleBucket::PinnedHeapHandleBucket(PinnedHeapHandleBucket *pNext, DWORD Size, BaseDomain *pDomain)
: m_pNext(pNext)
};
/*static*/
-MethodDesc* SystemDomain::GetCallersMethod(StackCrawlMark* stackMark)
-
-{
- CONTRACTL
- {
- THROWS;
- GC_TRIGGERS;
- MODE_ANY;
- INJECT_FAULT(COMPlusThrowOM(););
- }
- CONTRACTL_END;
-
- GCX_COOP();
-
- CallersDataWithStackMark cdata;
- ZeroMemory(&cdata, sizeof(CallersDataWithStackMark));
- cdata.stackMark = stackMark;
-
- GetThread()->StackWalkFrames(CallersMethodCallbackWithStackMark, &cdata, FUNCTIONSONLY | LIGHTUNWIND);
-
- if(cdata.pFoundMethod) {
- return cdata.pFoundMethod;
- } else
- return NULL;
-}
-
-/*static*/
-MethodTable* SystemDomain::GetCallersType(StackCrawlMark* stackMark)
-
-{
- CONTRACTL
- {
- THROWS;
- GC_TRIGGERS;
- MODE_COOPERATIVE;
- INJECT_FAULT(COMPlusThrowOM(););
- }
- CONTRACTL_END;
-
- CallersDataWithStackMark cdata;
- ZeroMemory(&cdata, sizeof(CallersDataWithStackMark));
- cdata.stackMark = stackMark;
-
- GetThread()->StackWalkFrames(CallersMethodCallbackWithStackMark, &cdata, FUNCTIONSONLY | LIGHTUNWIND);
-
- if(cdata.pFoundMethod) {
- return cdata.pFoundMethod->GetMethodTable();
- } else
- return NULL;
-}
-
-/*static*/
Module* SystemDomain::GetCallersModule(StackCrawlMark* stackMark)
{
//****************************************************************************************
// Methods used to get the callers module and hence assembly and app domain.
- static MethodDesc* GetCallersMethod(StackCrawlMark* stackMark);
- static MethodTable* GetCallersType(StackCrawlMark* stackMark);
static Module* GetCallersModule(StackCrawlMark* stackMark);
static Assembly* GetCallersAssembly(StackCrawlMark* stackMark);
static CrstStatic m_SystemDomainCrst;
static GlobalStringLiteralMap *m_pGlobalStringLiteralMap;
-
- static DWORD m_dwLowestFreeIndex;
#endif // DACCESS_COMPILE
public: