diff --git a/src/coreclr/inc/loaderheap.h b/src/coreclr/inc/loaderheap.h index b155d0188b84ea..54ba2595bff1ae 100644 --- a/src/coreclr/inc/loaderheap.h +++ b/src/coreclr/inc/loaderheap.h @@ -279,13 +279,6 @@ class UnlockedLoaderHeap } #endif -#ifdef _DEBUG - // Stubs allocated from a LoaderHeap will have unwind info registered with NT. - // The info must be unregistered when the heap is destroyed. - BOOL m_fPermitStubsWithUnwindInfo; - BOOL m_fStubUnwindInfoUnregistered; -#endif - public: BOOL m_fExplicitControl; // Am I a LoaderHeap or an ExplicitControlLoaderHeap? void (*m_codePageGenerator)(BYTE* pageBase, BYTE* pageBaseRX, SIZE_T size); diff --git a/src/coreclr/utilcode/loaderheap.cpp b/src/coreclr/utilcode/loaderheap.cpp index 9cbda2a5244567..00b30e764fea7a 100644 --- a/src/coreclr/utilcode/loaderheap.cpp +++ b/src/coreclr/utilcode/loaderheap.cpp @@ -965,8 +965,6 @@ UnlockedLoaderHeap::UnlockedLoaderHeap(DWORD dwReserveBlockSize, s_dwNumInstancesOfLoaderHeaps++; m_pEventList = NULL; m_dwDebugFlags = LoaderHeapSniffer::InitDebugFlags(); - m_fPermitStubsWithUnwindInfo = FALSE; - m_fStubUnwindInfoUnregistered= FALSE; #endif m_kind = kind; @@ -993,8 +991,6 @@ UnlockedLoaderHeap::~UnlockedLoaderHeap() } CONTRACTL_END - _ASSERTE(!m_fPermitStubsWithUnwindInfo || m_fStubUnwindInfoUnregistered); - if (m_pRangeList != NULL) m_pRangeList->RemoveRanges((void *) this);