Lines Matching refs:loc

512         const LargeObjectCache *loc = &((rml::internal::MemoryPool*)mallocPool)->extMemPool.loc;  in TestPools()  local
521 REQUIRE(loc->getUsedSize()); in TestPools()
523 REQUIRE(loc->getLOCSize() < 3*(minLargeObjectSize+LargeCacheStep)); in TestPools()
525 REQUIRE(loc->getUsedSize() <= maxLocalLOCSize); in TestPools()
528 size_t currUser = loc->getUsedSize(); in TestPools()
529 REQUIRE((!loc->getLOCSize() && currUser >= 3*(minLargeObjectSize+LargeCacheStep))); in TestPools()
531 REQUIRE(loc->getUsedSize() - currUser >= minLargeObjectSize+3*LargeCacheStep); in TestPools()
533 REQUIRE(loc->getUsedSize() <= currUser+maxLocalLOCSize); in TestPools()
535 REQUIRE((!loc->getLOCSize() && !loc->getUsedSize())); in TestPools()
544 const LargeObjectCache *loc = &((rml::internal::MemoryPool*)mallocPool)->extMemPool.loc; in TestPools() local
556 REQUIRE(!loc->getUsedSize()); in TestPools()
1049 defaultMemPool->extMemPool.loc.cleanAll(); in LOCModelTester()
1050 defaultMemPool->extMemPool.loc.reset(); in LOCModelTester()
1055 const int binIdx = defaultMemPool->extMemPool.loc.largeCache.sizeToIdx( allocationSize ); in LOCModelTester()
1057 …rgeObjectCache::LargeCacheTypeProps>::cacheCurrTime = defaultMemPool->extMemPool.loc.cacheCurrTime; in LOCModelTester()
1058 …bjectCache::LargeCacheTypeProps>::tooLargeLOC = defaultMemPool->extMemPool.loc.largeCache.tooLarge… in LOCModelTester()
1059 …ObjectCache::LargeCacheTypeProps> cacheBinModel(defaultMemPool->extMemPool.loc.largeCache.bin[binI… in LOCModelTester()
1198 defaultMemPool->extMemPool.loc.cleanAll(); in LOCCollapsingTester()
1199 defaultMemPool->extMemPool.loc.reset(); in LOCCollapsingTester()
1355 defaultMemPool->extMemPool.loc.cleanAll(); in TestReallocDecreasing()
1510 LargeObjectCache* loc; member
1536 loc->put(loArray[localIdx]); in populateCache()
1540 loc->put(loArray[idx - MIN_BIN_IDX]); in populateCache()
1546 loc->cleanAll(); in clean()
1550 loc->regularCleanup(); in clean()
1551 loc->decreasingCleanup(); in clean()
1571 …return (loc->hugeCache.bin[idx].cachedSize.load(std::memory_order_relaxed) == 0 && loc->hugeCache.… in cacheBinEmpty()
1574 return (loc->hugeCache.bin[idx].cachedSize.load(std::memory_order_relaxed) != 0 && in objectInCacheBin()
1575 loc->hugeCache.bin[idx].cachedSize.load(std::memory_order_relaxed) % size == 0); in objectInCacheBin()
1587 void TestHugeSizeThresholdImpl(LargeObjectCache* loc, size_t hugeSize, bool fullTesting) { in TestHugeSizeThresholdImpl() argument
1588 HOThresholdTester test = {loc, hugeSize}; in TestHugeSizeThresholdImpl()
1602 loc->setHugeSizeThreshold(LargeObjectCache::maxHugeSize); in TestHugeSizeThresholdImpl()
1603 loc->reset(); in TestHugeSizeThresholdImpl()
1612 LargeObjectCache* loc = &defaultMemPool->extMemPool.loc; in TestHugeSizeThreshold() local
1614 loc->setHugeSizeThreshold(LargeObjectCache::maxHugeSize); in TestHugeSizeThreshold()
1615 loc->reset(); in TestHugeSizeThreshold()
1618 TestHugeSizeThresholdImpl(loc, loc->hugeSizeThreshold, false); in TestHugeSizeThreshold()
1626 loc->hugeSizeThreshold = 0; in TestHugeSizeThreshold()
1628 loc->cacheCurrTime = 0; in TestHugeSizeThreshold()
1629 loc->init(&defaultMemPool->extMemPool); in TestHugeSizeThreshold()
1630 TestHugeSizeThresholdImpl(loc, 64 * MByte, true); in TestHugeSizeThreshold()
1634 TestHugeSizeThresholdImpl(loc, 56 * MByte, true); in TestHugeSizeThreshold()
1639 REQUIRE_MESSAGE(!loc->sizeInCacheRange(sz), "Upper bound sized object shouldn't be cached."); in TestHugeSizeThreshold()
1640 REQUIRE_MESSAGE(loc->get(sz) == nullptr, "Upper bound sized object shouldn't be cached."); in TestHugeSizeThreshold()