Home
last modified time | relevance | path

Searched refs:freed (Results 1 – 25 of 45) sorted by relevance

12

/aosp12/system/bt/osi/src/
H A Dallocation_tracker.cc37 bool freed; member
88 if (!allocation->freed) { in allocation_tracker_expect_no_allocations()
116 CHECK(allocation->freed); // Must have been freed before in allocation_tracker_notify_alloc()
123 allocation->freed = false; in allocation_tracker_notify_alloc()
145 CHECK(!allocation->freed); // Must not be a double free in allocation_tracker_notify_free()
153 allocation->freed = true; in allocation_tracker_notify_free()
/aosp12/frameworks/native/libs/binder/
H A DMemoryDealer.cpp317 chunk_t const * const freed = dealloc(offset); in deallocate() local
318 if (freed) { in deallocate()
392 chunk_t* freed = cur; in dealloc() local
398 freed = p; in dealloc()
407 if (!freed->free) { in dealloc()
411 LOG_FATAL_IF(!freed->free, in dealloc()
413 freed->start * kMemoryAlign, freed->size * kMemoryAlign); in dealloc()
415 return freed; in dealloc()
/aosp12/art/runtime/gc/collector/
H A Dgarbage_collector.cc297 void GarbageCollector::RecordFree(const ObjectBytePair& freed) { in RecordFree() argument
298 GetCurrentIteration()->freed_.Add(freed); in RecordFree()
299 heap_->RecordFree(freed.objects, freed.bytes); in RecordFree()
301 void GarbageCollector::RecordFreeLOS(const ObjectBytePair& freed) { in RecordFreeLOS() argument
302 GetCurrentIteration()->freed_los_.Add(freed); in RecordFreeLOS()
303 heap_->RecordFree(freed.objects, freed.bytes); in RecordFreeLOS()
H A Diteration.h69 void SetFreedRevoke(uint64_t freed) { in SetFreedRevoke() argument
70 freed_bytes_revoke_ = freed; in SetFreedRevoke()
H A Dgarbage_collector.h113 void RecordFree(const ObjectBytePair& freed);
115 void RecordFreeLOS(const ObjectBytePair& freed);
H A Dmark_sweep.cc1213 ObjectBytePair freed; in SweepArray() local
1257 freed.objects += chunk_free_pos; in SweepArray()
1258 freed.bytes += alloc_space->FreeList(self, chunk_free_pos, chunk_free_buffer); in SweepArray()
1269 freed.objects += chunk_free_pos; in SweepArray()
1270 freed.bytes += alloc_space->FreeList(self, chunk_free_pos, chunk_free_buffer); in SweepArray()
1299 RecordFree(freed); in SweepArray()
/aosp12/system/gatekeeper/include/gatekeeper/
H A DUniquePtr.h199 static bool freed = false;
204 freed = true;
267 assert(!freed);
272 assert(freed);
/aosp12/art/runtime/gc/space/
H A Dmalloc_space.cc76 for (auto& freed : recent_freed_objects_) { in MallocSpace() local
77 freed.first = nullptr; in MallocSpace()
78 freed.second = nullptr; in MallocSpace()
275 context->freed.objects += num_ptrs; in SweepCallback()
276 context->freed.bytes += space->FreeList(self, num_ptrs, ptrs); in SweepCallback()
H A Dmemory_tool_malloc_space-inl.h253 size_t freed = 0; in FreeList() local
261 freed += Free(self, ptrs[i]); in FreeList()
264 return freed; in FreeList()
H A Dspace.cc105 return scc.freed; in Sweep()
H A Dlarge_object_space.cc621 context->freed.objects += num_ptrs; in SweepCallback()
622 context->freed.bytes += space->FreeList(self, num_ptrs, ptrs); in SweepCallback()
641 return scc.freed; in Sweep()
H A Dspace.h257 collector::ObjectBytePair freed; member
/aosp12/bionic/libc/malloc_debug/
H A DREADME_marshmallow_and_earlier.md68 Whenever an allocation is freed, write a known pattern over the data (0xef).
83 When the allocation is freed, both of these guards are verified to contain
87 When a pointer is freed, do not free the memory right away, but add it to
88 a list of freed allocations. In addition to being added to the list, the
93 When the list of freed allocations reaches 100, the oldest allocation
H A DREADME.md51 When the allocation is freed, the guard is checked to verify it has not been
77 When the allocation is freed, the guard is checked to verify it has not been
177 When an allocation is freed, fill it with 0xef.
195 When a pointer is freed, do not free the memory right away, but add it to
196 a list of freed allocations. In addition to being added to the list, the
211 in the list. The default is to record 100 freed allocations, the max
238 backtrace frames to capture when an allocation is freed.
242 allocation is freed. The default is to record 16 frames, the max number of
436 This indicates that code is attempting to free an already freed pointer. The
445 with an already freed pointer.
/aosp12/art/test/152-dead-large-object/
H A Dinfo.txt1 Test that large objects are freed properly after a GC.
/aosp12/art/test/141-class-unload/
H A Dinfo.txt1 Test that classes get freed after they are no longer reachable.
/aosp12/frameworks/av/media/codec2/components/avc/
H A DC2SoftAvcEnc.cpp1854 void *freed = ps_encode_op->s_inp_buf.apv_bufs[0]; in process() local
1856 if (freed != nullptr) { in process()
1857 if (mBuffers.count(freed) == 0u) { in process()
1861 mBuffers.erase(freed); in process()
1862 mConversionBuffersInUse.erase(freed); in process()
1930 void *freed = ps_encode_op->s_inp_buf.apv_bufs[0]; in drainInternal() local
1932 if (freed != nullptr) { in drainInternal()
1933 if (mBuffers.count(freed) == 0u) { in drainInternal()
1937 mBuffers.erase(freed); in drainInternal()
1938 mConversionBuffersInUse.erase(freed); in drainInternal()
/aosp12/hardware/interfaces/automotive/audiocontrol/2.0/
H A DICloseHandle.hal24 * resources must be freed.
/aosp12/hardware/interfaces/automotive/can/1.0/
H A DICloseHandle.hal23 * resources must be freed.
H A DICanController.hal188 * unpublished and resources freed on best-effort basis.
/aosp12/frameworks/hardware/interfaces/sensorservice/1.0/
H A DREADME64 * hence resources are freed as well.
138 * hence resources (including the callback) are freed as well.
/aosp12/frameworks/hardware/interfaces/bufferhub/1.0/
H A Dtypes.hal24 BUFFER_FREED, // Buffer is freed already
H A DIBufferClient.hal38 * only used by this client, but the client must also be freed after
/aosp12/system/extras/simpleperf/doc/
H A Djit_symbols.md58 For example, if memory pages were first used by `dlopen("libfoo.so")`, then freed by `dlclose`,
/aosp12/system/bt/doc/
H A Dstyle_guide.md177 routines and objects returned from those functions must be freed with the
179 `list_new` should be freed with `list_free` and no other freeing routine.

12