Searched refs:allocations (Results 1 – 14 of 14) sorted by relevance
73 std::vector<AllocationExpectedValuePair> allocations; in TEST() local84 allocations.push_back(allocation); in TEST()91 while (!allocations.empty()) { in TEST()94 std::uniform_int_distribution<> distribution(0, allocations.size() - 1); in TEST()98 EXPECT_EQ(*allocations[deallocateIndex].allocation, in TEST()99 allocations[deallocateIndex].expectedValue); in TEST()100 memoryPool.deallocate(allocations[deallocateIndex].allocation); in TEST()103 allocations.erase(allocations.begin() + deallocateIndex); in TEST()
42 static std::unordered_map<void*, allocation_t*> allocations; variable69 allocations.clear(); in allocation_tracker_uninit()77 allocations.clear(); in allocation_tracker_reset()86 for (const auto& entry : allocations) { in allocation_tracker_expect_no_allocations()112 auto map_entry = allocations.find(return_ptr); in allocation_tracker_notify_alloc()114 if (map_entry != allocations.end()) { in allocation_tracker_notify_alloc()119 allocations[return_ptr] = allocation; in allocation_tracker_notify_alloc()141 auto map_entry = allocations.find(ptr); in allocation_tracker_notify_free()142 CHECK(map_entry != allocations.end()); in allocation_tracker_notify_free()166 allocations.erase(ptr); in allocation_tracker_notify_free()
6 …all to malloc and free, it queries the allocator (jemalloc) for active allocations when leak detec…8 …enabled they will be included in the leak information, but backtracing allocations requires signif…19 To enable malloc\_debug backtraces on allocations for a single app process on a userdebug device, u…67 …10. *Sweeper process*: A list of all active allocations is produced by examining the memory mappin…70 13. Unmarked allocations are sent over the pipe back to the original process.81 - `HeapWalker.cpp`: Performs the mark-and-sweep pass over active allocations.87 …quires a small interface to the allocator in order to collect information about active allocations.90 - `malloc enable()`: re-enable allocations in all threads.
29 # 4: Number of allocations
30 # 4: Number of allocations
2 the memory allocations of a set of apps.
218 #### Avoid dynamic heap allocations where possible221 runtime memory allocation will succeed. In addition, dynamic heap allocations223 therefore encouraged to use static allocations where possible.228 fixed stack of limited size (8KB is typical). Ensure you keep any allocations to229 an absolute minimum and any large allocations should go out of scope prior to
712 # We need to write to /proc/$PID/page_idle to find idle allocations.
754 # We need to write to /proc/$PID/page_idle to find idle allocations.