Lines Matching defs:BackRefMain
58 struct BackRefMain { struct
65 static const size_t bytes = sizeof(uintptr_t)>4? 256*1024 : 8*1024;
66 static const int dataSz;
69 static const int leaves = 4;
70 static const size_t mainSize = BackRefMain::bytes+leaves*BackRefBlock::bytes;
73 static const size_t blockSpaceSize = 64*1024;
75 Backend *backend;
76 std::atomic<BackRefBlock*> active; // if defined, use it for allocations
77 std::atomic<BackRefBlock*> listForUse; // the chain of data blocks with free items
78 BackRefBlock *allRawMemBlocks;
79 std::atomic <intptr_t> lastUsed; // index of the last used block
80 bool rawMemUsed;
81 MallocMutex requestNewSpaceMutex;
82 BackRefBlock *backRefBl[1]; // the real size of the array is dataSz