}
};
-ArenaAllocator::SinglePagePool ArenaAllocator::s_pagePool;
+ArenaAllocator::SinglePagePool ArenaAllocator::s_pagePool = {};
//------------------------------------------------------------------------
// ArenaAllocator::bypassHostAllocator:
if (pageSize < size)
{
NOMEM();
- return nullptr;
}
// If the current page is now full, update a few statistics
if (newPage == nullptr)
{
NOMEM();
- return nullptr;
}
if (tryPoolNewPage)
{
if (disAddrToMethodHandleMap == nullptr)
{
- assert(disComp->getAllocator() != nullptr);
disAddrToMethodHandleMap = new (disComp->getAllocator()) AddrToMethodHandleMap(disComp->getAllocator());
}
return disAddrToMethodHandleMap;
{
if (disHelperAddrToMethodHandleMap == nullptr)
{
- assert(disComp->getAllocator() != nullptr);
disHelperAddrToMethodHandleMap = new (disComp->getAllocator()) AddrToMethodHandleMap(disComp->getAllocator());
}
return disHelperAddrToMethodHandleMap;
{
if (disRelocationMap == nullptr)
{
- assert(disComp->getAllocator() != nullptr);
disRelocationMap = new (disComp->getAllocator()) AddrToAddrMap(disComp->getAllocator());
}
return disRelocationMap;