}
#endif
+ static void* operator new(size_t size, IAllocator* allocator)
+ {
+ return allocator->Alloc(size);
+ }
+
private:
size_t * m_pData;
size_t * m_pEndData;
UINT32 liveStateOffset = 0;
if (!hashMap.Lookup(&liveState, &liveStateOffset))
{
- BitArray * newLiveState = new (m_pAllocator->Alloc(sizeof(BitArray))) BitArray(m_pAllocator, size_tCount);
+ BitArray * newLiveState = new (m_pAllocator) BitArray(m_pAllocator, size_tCount);
*newLiveState = liveState;
hashMap.Set(newLiveState, (UINT32)(-1));
}
UINT32 liveStateOffset = 0;
if (!hashMap.Lookup(&liveState, &liveStateOffset))
{
- BitArray * newLiveState = new (m_pAllocator->Alloc(sizeof(BitArray))) BitArray(m_pAllocator, size_tCount);
+ BitArray * newLiveState = new (m_pAllocator) BitArray(m_pAllocator, size_tCount);
*newLiveState = liveState;
hashMap.Set(newLiveState, (UINT32)(-1));
}
#include <windows.h>
#include <wchar.h>
#include <stdio.h>
-#include "utilcode.h"
#include "corjit.h"
#include "iallocator.h"
#include "gcinfoarraylist.h"
GENERIC_CONTEXTPARAM_THIS = 3,
};
+extern void DECLSPEC_NORETURN ThrowOutOfMemory();
+
class GcInfoEncoder
{
public:
ICorJitInfo* pCorJitInfo,
CORINFO_METHOD_INFO* pMethodInfo,
IAllocator* pJitAllocator,
- NoMemoryFunction pNoMem = ThrowOutOfMemory
+ NoMemoryFunction pNoMem = ::ThrowOutOfMemory
);
struct LifetimeTransition