Home | History | Annotate | Download | only in space

Lines Matching defs:usable_size

32                                          size_t bytes_allocated, size_t usable_size,
49 *usable_size_out = usable_size - 2 * kMemoryToolRedZoneBytes;
63 // Right redzone. Assumes that if bytes_allocated > usable_size, then the difference is
65 // At the moment, this fits RosAlloc (no management data in a slot, usable_size == alloc_size)
66 // and DlMalloc (allocation_size = (usable_size == num_bytes) + 4, 4 is management)
68 usable_size - (num_bytes + kMemoryToolRedZoneBytes));
91 size_t usable_size;
94 &bytes_allocated, &usable_size,
102 bytes_allocated, usable_size,
120 size_t usable_size;
123 &bytes_allocated, &usable_size, &bytes_tl_bulk_allocated);
130 bytes_allocated, usable_size,
148 size_t usable_size;
151 &bytes_allocated, &usable_size,
159 bytes_allocated, usable_size,
174 mirror::Object* obj, size_t* usable_size) {
177 usable_size);
178 if (usable_size != nullptr) {
180 *usable_size = memory_tool_details::GetObjSizeNoThreadSafety(obj);
182 *usable_size = *usable_size - 2 * kMemoryToolRedZoneBytes;
201 size_t usable_size;
202 size_t allocation_size = AllocationSize(ptr, &usable_size);
205 // Use the obj-size-for-usable flag to determine whether usable_size is the more important one,
206 // e.g., whether there's data in the allocation_size (and usable_size can't be trusted).
210 MEMORY_TOOL_MAKE_UNDEFINED(obj_with_rdz, usable_size + 2 * kMemoryToolRedZoneBytes);