Home
last modified time | relevance | path

Searched refs:allocated_blocks (Results 1 – 9 of 9) sorted by relevance

/external/avb/test/
Davb_sysdeps_posix_testing.cc92 static std::map<void*, AvbAllocatedBlock> allocated_blocks; variable
99 allocated_blocks[ptr] = block; in avb_malloc_()
104 auto block_it = allocated_blocks.find(ptr); in avb_free()
105 if (block_it == allocated_blocks.end()) { in avb_free()
109 allocated_blocks.erase(block_it); in avb_free()
122 allocated_blocks.clear(); in testing_memory_reset()
126 if (allocated_blocks.size() == 0) { in testing_memory_all_freed()
131 for (const auto& block_it : allocated_blocks) { in testing_memory_all_freed()
137 allocated_blocks.size()); in testing_memory_all_freed()
139 for (const auto& block_it : allocated_blocks) { in testing_memory_all_freed()
[all …]
/external/sdv/vsomeip/third_party/boost/pool/test/
Dtrack_allocator.hpp81 static std::set<char*> allocated_blocks; member
86 allocated_blocks.insert(ret); in malloc()
92 BOOST_TEST(allocated_blocks.find(block) != allocated_blocks.end()); in free()
93 allocated_blocks.erase(block); in free()
99 return allocated_blocks.empty(); in ok()
102 std::set<char*> track_allocator::allocated_blocks; member in track_allocator
Dtest_simple_seg_storage.hpp29 std::vector<std::pair<void*, std::size_t> > allocated_blocks; member in test_simp_seg_store
35 if(allocated_blocks.empty()) in set_partition_size()
50 for(VPIter iter = allocated_blocks.begin(); in is_inside_allocated_blocks()
51 iter != allocated_blocks.end(); in is_inside_allocated_blocks()
101 allocated_blocks.push_back( in add_block()
115 allocated_blocks.push_back( in add_ordered_block()
Dtest_pool_alloc.cpp90 static std::set<char *> allocated_blocks; member
95 allocated_blocks.insert(ret); in malloc()
101 BOOST_TEST(allocated_blocks.find(block) != allocated_blocks.end()); in free()
102 allocated_blocks.erase(block); in free()
108 return allocated_blocks.empty(); in ok()
112 std::set<char *> TrackAlloc<UserAllocator>::allocated_blocks; member in TrackAlloc<UserAllocator>
Dtest_simple_seg_storage.cpp296 = track_allocator::allocated_blocks.begin(); in main()
297 itr != track_allocator::allocated_blocks.end(); in main()
302 track_allocator::allocated_blocks.clear(); in main()
/external/pytorch/c10/xpu/
DXPUCachingAllocator.cpp517 ska::flat_hash_map<void*, Block*> allocated_blocks; member in c10::xpu::XPUCachingAllocator::XPUAllocator
521 allocated_blocks[block->ptr] = block; in add_allocated_block()
526 auto it = allocated_blocks.find(ptr); in get_allocated_block()
527 if (it == allocated_blocks.end()) { in get_allocated_block()
532 allocated_blocks.erase(it); in get_allocated_block()
/external/crosvm/ext2/src/
Dfs.rs524 let (allocated_blocks, length) = self in fill_indirect_block()
529 slice.copy_from_slice(allocated_blocks.as_bytes()); in fill_indirect_block()
557 let (allocated_blocks, len) = self in add_file()
561 block.set_direct_blocks(&allocated_blocks)?; in add_file()
/external/python/cpython3/Objects/
Dobmalloc.c1394 void* block, size_t block_size, void* allocated_blocks) in count_blocks() argument
1396 *(size_t *)allocated_blocks += area->used; in count_blocks()
1403 size_t allocated_blocks = 0; in get_mimalloc_allocated_blocks() local
1409 mi_heap_visit_blocks(heap, false, &count_blocks, &allocated_blocks); in get_mimalloc_allocated_blocks()
1416 &allocated_blocks); in get_mimalloc_allocated_blocks()
1421 mi_heap_visit_blocks(heap, false, &count_blocks, &allocated_blocks); in get_mimalloc_allocated_blocks()
1423 return allocated_blocks; in get_mimalloc_allocated_blocks()
3230 size_t allocated_blocks; member
3242 stats->allocated_blocks += area->used; in _collect_alloc_stats()
3265 fprintf(out, " Allocated Blocks: %zd\n", stats.allocated_blocks); in py_mimalloc_print_stats()
/external/pytorch/c10/cuda/
DCUDACachingAllocator.cpp3164 allocated_blocks; member in c10::cuda::CUDACachingAllocator::Native::NativeCachingAllocator
3174 allocated_blocks[mutex_shard_id][block->ptr] = block; in add_allocated_block()
3188 auto it = allocated_blocks[mutex_shard_id].find(ptr); in get_allocated_block()
3189 if (it == allocated_blocks[mutex_shard_id].end()) { in get_allocated_block()
3194 allocated_blocks[mutex_shard_id].erase(it); in get_allocated_block()