Home
last modified time | relevance | path

Searched refs:BackRefIdx (Results 1 – 6 of 6) sorted by relevance

/oneTBB/src/tbbmalloc/
H A Dtbbmalloc_internal.h303 class BackRefIdx { // composite index to backreference array
312 BackRefIdx() : main(invalid), largeObj(0), offset(0) {}
321 BackRefIdx dereference(const BackRefIdx* ptr) {
322 BackRefIdx idx;
330 BackRefIdx dereference(const BackRefIdx* ptr) {
336 static BackRefIdx newBackRef(bool largeObj);
364 BackRefIdx backRefIdx; // cached here, used copy is in LargeObjectHdr
636 BackRefIdx backRefIdx;
744 void removeBackRef(BackRefIdx backRefIdx);
745 void setBackRef(BackRefIdx backRefIdx, void *newPtr);
[all …]
H A Dbackref.cpp35 BackRefIdx::main_t myNum; // the index in the main
47 MALLOC_ASSERT(!(num >> CHAR_BIT*sizeof(BackRefIdx::main_t)), in BackRefBlock()
236 void *getBackRef(BackRefIdx backRefIdx) in getBackRef()
253 void setBackRef(BackRefIdx backRefIdx, void *newPtr) in setBackRef()
261 BackRefIdx BackRefIdx::newBackRef(bool largeObj) in newBackRef()
265 BackRefIdx res; in newBackRef()
272 return BackRefIdx(); in newBackRef()
320 void removeBackRef(BackRefIdx backRefIdx) in removeBackRef()
H A Dfrontend.cpp337 BackRefIdx backRefIdx;
382 const BackRefIdx *getBackRefIdx() const { return &backRefIdx; } in getBackRefIdx()
1017 BackRefIdx backRefIdx[Backend::numOfSlabAllocOnMiss]; in getEmptyBlock()
1040 new (&b->backRefIdx) BackRefIdx(); in getEmptyBlock()
1852 BackRefIdx backRefIdx = BackRefIdx::newBackRef(/*largeObj=*/false); in getBlock()
2345 header->backRefIdx = BackRefIdx(); in putToLLOCache()
2478 static inline BackRefIdx safer_dereference (const BackRefIdx *ptr) in safer_dereference()
2480 BackRefIdx id; in safer_dereference()
2488 id = BackRefIdx(); in safer_dereference()
2500 BackRefIdx idx = (memOrigin == unknownMem) ? in isLargeObject()
[all …]
H A Dlarge_objects.cpp988 BackRefIdx backRefIdx = BackRefIdx::newBackRef(/*largeObj=*/true); in mallocLargeObject()
/oneTBB/test/tbbmalloc/
H A Dtest_malloc_overload.cpp136 class BackRefIdx { // composite index to backreference array class
142 BackRefIdx() : main((uint16_t)-1) {} in BackRefIdx() function in BackRefIdx
149 static BackRefIdx newBackRef(bool largeObj);
169 BackRefIdx backRefIdx; // cached here, used copy is in LargeObjectHdr
179 BackRefIdx backRefIdx;
H A Dtest_malloc_whitebox.cpp232 BackRefIdx idx;
234 TestBlock(BackRefIdx idx_) : idx(idx_) {} in TestBlock()
245 BackRefIdx idx = BackRefIdx::newBackRef(/*largeObj=*/false); in operator ()()
567 REQUIRE_MESSAGE(sizeof(BackRefIdx)==sizeof(uintptr_t), "Unexpected size of BackRefIdx"); in TestObjectRecognition()
585 headerLO->backRefIdx = BackRefIdx::newBackRef(/*largeObj=*/true); in TestObjectRecognition()
592 BackRefIdx idxs[NUM_OF_IDX]; in TestObjectRecognition()
619 idxs[i] = BackRefIdx::newBackRef(/*largeObj=*/false); in TestObjectRecognition()
637 BackRefIdx idx;