/external/e2fsprogs/e2fsck/ |
D | mtrace.awk | 5 $1 == "+" { if (allocated[$2] != "") 6 print "+", $2, "Alloc", NR, "duplicate:", allocated[$2]; 8 allocated[$2] = $3; 10 $1 == "-" { if (allocated[$2] != "") { 11 allocated[$2] = ""; 12 if (allocated[$2] != "") 13 print "DELETE FAILED", $2, allocated[$2]; 17 $1 == "<" { if (allocated[$2] != "") 18 allocated[$2] = ""; 22 $1 == ">" { if (allocated[$2] != "") [all …]
|
D | region.c | 31 struct region_el *allocated; member 51 for (r = region->allocated; r; r = next) { in region_free() 77 for (r = region->allocated, prev=NULL; r; prev = r, r = r->next) { in region_allocate() 115 region->allocated = new_region; in region_allocate() 163 for (r = region->allocated; r; r = r->next) { in region_print()
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
D | standalone_malloc_test.cc | 21 vector<pair<char *, size_t> > allocated; in MallocThread() local 22 allocated.reserve(kNumIters); in MallocThread() 36 allocated.push_back(make_pair(x, size)); in MallocThread() 39 if (allocated.empty()) continue; in MallocThread() 40 size_t slot = i % allocated.size(); in MallocThread() 41 char *p = allocated[slot].first; in MallocThread() 43 size_t size = allocated[slot].second; in MallocThread() 45 swap(allocated[slot], allocated.back()); in MallocThread() 46 allocated.pop_back(); in MallocThread() 54 for (size_t i = 0; i < allocated.size(); i++) in MallocThread() [all …]
|
D | sanitizer_allocator_test.cc | 90 std::vector<void *> allocated; in TestSizeClassAllocator() local 107 allocated.push_back(x); in TestSizeClassAllocator() 122 for (uptr i = 0; i < allocated.size(); i++) { in TestSizeClassAllocator() 123 void *x = allocated[i]; in TestSizeClassAllocator() 129 allocated.clear(); in TestSizeClassAllocator() 169 void *allocated[kNumAllocs]; in SizeClassAllocatorMetadataStress() local 173 allocated[i] = x; in SizeClassAllocatorMetadataStress() 179 void *m = a->GetMetaData(allocated[idx]); in SizeClassAllocatorMetadataStress() 183 cache.Deallocate(a, 1 + i % 50, allocated[i]); in SizeClassAllocatorMetadataStress() 342 char *allocated[kNumAllocs]; in TEST() local [all …]
|
/external/compiler-rt/test/asan/TestCases/Posix/ |
D | new_array_cookie_with_new_from_class.cc | 15 static void *allocated; member 17 assert(!allocated); in Allocate() 18 return allocated = ::new char[s]; in Allocate() 23 void *Foo::allocated; member in Foo 32 fprintf(stderr, "alloc: %p\n", Foo::allocated); in main() 34 reinterpret_cast<uintptr_t>(Foo::allocated) + sizeof(void*)); in main() 35 *reinterpret_cast<uintptr_t*>(Foo::allocated) = 42; in main()
|
/external/clang/test/Analysis/ |
D | MismatchedDeallocator-checker-test.mm | 23 …delete p; // expected-warning{{Memory allocated by malloc() should be deallocated by free(), not '… 29 …delete q; // expected-warning{{Memory allocated by realloc() should be deallocated by free(), not … 34 …delete p; // expected-warning{{Memory allocated by calloc() should be deallocated by free(), not '… 39 …delete p; // expected-warning{{Memory allocated by strdup() should be deallocated by free(), not '… 44 …delete p; // expected-warning{{Memory allocated by my_malloc() should be deallocated by free(), no… 49 …operator delete(p); // expected-warning{{Memory allocated by malloc() should be deallocated by fre… 54 …delete[] p; // expected-warning{{Memory allocated by malloc() should be deallocated by free(), not… 59 …operator delete[](p); // expected-warning{{Memory allocated by malloc() should be deallocated by f… 64 delete p; // expected-warning{{Memory allocated by alloca() should not be deallocated}} 70 …free(p); // expected-warning{{Memory allocated by 'new' should be deallocated by 'delete', not fre… [all …]
|
/external/clang/test/SemaObjC/ |
D | invalid-objc-decls-1.m | 4 Super s1; // expected-error{{interface type cannot be statically allocated}} 6 extern Super e1; // expected-error{{interface type cannot be statically allocated}} 9 Super s1; // expected-error{{interface type cannot be statically allocated}} 16 Super ivar1; // expected-error{{interface type cannot be statically allocated}} 21 Super objField; // expected-error{{interface type cannot be statically allocated}} 26 Super<P1> ivar1; // expected-error{{interface type cannot be statically allocated}} 32 Super p1; // expected-error{{interface type cannot be statically allocated}} 39 …donly) NSMutableSet annotations; // expected-error{{interface type cannot be statically allocated}}
|
/external/v8/test/unittests/compiler/ |
D | zone-pool-unittest.cc | 134 size_t allocated = 0; in TEST_F() local 139 allocated += bytes; in TEST_F() 142 std::max(max_loop_allocation, outer_allocated + allocated); in TEST_F() 143 Expect(&inner_stats, allocated, allocated, allocated); in TEST_F() 144 Expect(&outer_stats, outer_allocated + allocated, max_loop_allocation, in TEST_F() 146 ExpectForPool(outer_allocated + allocated, max_loop_allocation, in TEST_F() 150 Expect(&inner_stats, 0, allocated, allocated); in TEST_F()
|
/external/jemalloc/test/unit/ |
D | stats.c | 6 size_t sz, allocated, active, resident, mapped; in TEST_BEGIN() local 14 assert_d_eq(mallctl("stats.allocated", &allocated, &sz, NULL, 0), in TEST_BEGIN() 26 assert_zu_le(allocated, active, in TEST_BEGIN() 40 size_t allocated; in TEST_BEGIN() local 52 assert_d_eq(mallctl("stats.arenas.0.huge.allocated", &allocated, &sz, in TEST_BEGIN() 63 assert_zu_gt(allocated, 0, in TEST_BEGIN() 146 size_t sz, allocated; in TEST_BEGIN() local 166 assert_d_eq(mallctl("stats.arenas.0.small.allocated", &allocated, &sz, in TEST_BEGIN() 177 assert_zu_gt(allocated, 0, in TEST_BEGIN() 195 size_t sz, allocated; in TEST_BEGIN() local [all …]
|
/external/valgrind/memcheck/tests/ |
D | leak-pool.c | 17 size_t allocated; member 26 assert(p->used + n < p->allocated); in allocate_from_pool() 37 p->allocated = 4096; in allocate_pool() 39 p->buf = malloc(p->allocated); in allocate_pool() 41 memset(p->buf, 0, p->allocated); in allocate_pool() 43 (void) VALGRIND_MAKE_MEM_NOACCESS(p->buf, p->allocated); in allocate_pool()
|
/external/v8/src/interpreter/ |
D | bytecode-register-allocator.cc | 30 int allocated = -1; in NewRegister() local 32 allocated = builder_->BorrowTemporaryRegister(); in NewRegister() 34 allocated = builder_->BorrowTemporaryRegisterNotInRange( in NewRegister() 38 allocated_.push_back(allocated); in NewRegister() 39 return Register(allocated); in NewRegister()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_symbolizer_libbacktrace.cc | 45 uptr size, allocated; member 52 if (needed > data->allocated) { in CplusV3DemangleCallback() 53 data->allocated *= 2; in CplusV3DemangleCallback() 54 if (needed > data->allocated) in CplusV3DemangleCallback() 55 data->allocated = needed; in CplusV3DemangleCallback() 56 char *buf = (char *)InternalAlloc(data->allocated); in CplusV3DemangleCallback() 73 data.allocated = 0; in CplusV3Demangle() 76 if (data.size + 64 > data.allocated) in CplusV3Demangle()
|
/external/compiler-rt/lib/msan/ |
D | msan_allocator.cc | 118 void *allocated; in MsanAllocate() local 121 allocated = allocator.Allocate(cache, size, alignment, false); in MsanAllocate() 125 allocated = allocator.Allocate(cache, size, alignment, false); in MsanAllocate() 128 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in MsanAllocate() 131 __msan_clear_and_unpoison(allocated, size); in MsanAllocate() 133 __msan_poison(allocated, size); in MsanAllocate() 137 __msan_set_origin(allocated, size, o.raw_id()); in MsanAllocate() 140 MSAN_MALLOC_HOOK(allocated, size); in MsanAllocate() 141 return allocated; in MsanAllocate()
|
/external/freetype/src/cff/ |
D | cf2arrst.c | 67 arrstack->allocated = 0; in cf2_arrstack_init() 83 arrstack->allocated = 0; in cf2_arrstack_finalize() 115 arrstack->allocated = numElements; in cf2_arrstack_setNumElements() 145 if ( numElements > arrstack->allocated ) in cf2_arrstack_setCount() 217 if ( arrstack->count == arrstack->allocated ) in cf2_arrstack_push() 221 arrstack, arrstack->allocated + arrstack->chunk ) ) in cf2_arrstack_push()
|
/external/pdfium/third_party/freetype/src/cff/ |
D | cf2arrst.c | 67 arrstack->allocated = 0; in cf2_arrstack_init() 83 arrstack->allocated = 0; in cf2_arrstack_finalize() 115 arrstack->allocated = numElements; in cf2_arrstack_setNumElements() 145 if ( numElements > arrstack->allocated ) in cf2_arrstack_setCount() 217 if ( arrstack->count == arrstack->allocated ) in cf2_arrstack_push() 221 arrstack, arrstack->allocated + arrstack->chunk ) ) in cf2_arrstack_push()
|
/external/e2fsprogs/intl/ |
D | vasnprintf.c | 142 size_t allocated; in VASNPRINTF() local 170 allocated = *lengthp; in VASNPRINTF() 175 allocated = 0; in VASNPRINTF() 185 if ((needed) > allocated) \ in VASNPRINTF() 190 allocated = (allocated > 0 ? xtimes (allocated, 2) : 12); \ in VASNPRINTF() 191 if ((needed) > allocated) \ in VASNPRINTF() 192 allocated = (needed); \ in VASNPRINTF() 193 memory_size = xtimes (allocated, sizeof (CHAR_T)); \ in VASNPRINTF() 593 maxlen = allocated - length; in VASNPRINTF() 789 xsum (xtimes (allocated, 2), 12); in VASNPRINTF() [all …]
|
/external/opencv3/modules/core/src/ |
D | alloc.cpp | 245 allocated = 0; in init() 248 bool isFilled() const { return allocated > almostEmptyThreshold; } in isFilled() 261 int allocated; member 361 int allocated = block->allocated; in ~ThreadData() local 368 allocated--; in ~ThreadData() 370 if( allocated == 0 ) in ~ThreadData() 565 --block->allocated; in fastMalloc() 569 if( block->allocated+1 <= block->almostEmptyThreshold ) in fastMalloc() 590 ++block->allocated; in fastMalloc() 627 --block->allocated; in fastFree() [all …]
|
/external/valgrind/coregrind/m_demangle/ |
D | dyn-string.c | 85 ds_struct_ptr->allocated = space; in dyn_string_init() 154 int new_allocated = ds->allocated; in dyn_string_resize() 163 if (new_allocated != ds->allocated) in dyn_string_resize() 165 ds->allocated = new_allocated; in dyn_string_resize() 168 ds->s = (char *) realloc (ds->s, ds->allocated); in dyn_string_resize() 175 ds->s = XRESIZEVEC (char, ds->s, ds->allocated); in dyn_string_resize()
|
/external/elfutils/libdw/ |
D | dwarf_getpubnames.c | 46 size_t allocated = 0; in get_offsets() local 57 if (cnt >= allocated) in get_offsets() 59 allocated = MAX (10, 2 * allocated); in get_offsets() 61 = (struct pubnames_s *) realloc (mem, allocated * entsize); in get_offsets()
|
/external/dbus/tools/ |
D | dbus-cleanup-sockets.c | 176 int allocated; in read_sockets() local 179 allocated = 2; in read_sockets() 180 entries = xmalloc (sizeof (SocketEntry*) * allocated); in read_sockets() 199 if (n_entries == allocated) in read_sockets() 201 allocated *= 2; in read_sockets() 202 entries = xrealloc (entries, sizeof (SocketEntry*) * allocated); in read_sockets()
|
/external/strace/ |
D | scsi.c | 49 unsigned int allocated, i; in print_sg_io_buffer() local 54 allocated = (len > max_strlen) ? max_strlen : len; in print_sg_io_buffer() 55 buf = malloc(allocated); in print_sg_io_buffer() 56 if (!buf || umoven(tcp, addr, allocated, buf) < 0) { in print_sg_io_buffer() 61 for (i = 1; i < allocated; ++i) in print_sg_io_buffer() 63 if (allocated != len) in print_sg_io_buffer()
|
/external/vulkan-validation-layers/tests/gtest-1.7.0/samples/ |
D | sample10_unittest.cc | 66 static int allocated() { return allocated_; } in allocated() function in __anonc36c6cf90111::Water 82 initially_allocated_ = Water::allocated(); in OnTestStart() 87 int difference = Water::allocated() - initially_allocated_; in OnTestEnd()
|
/external/google-breakpad/src/testing/gtest/samples/ |
D | sample10_unittest.cc | 66 static int allocated() { return allocated_; } in allocated() function in __anona3babeb80111::Water 82 initially_allocated_ = Water::allocated(); in OnTestStart() 87 int difference = Water::allocated() - initially_allocated_; in OnTestEnd()
|
/external/protobuf/gtest/samples/ |
D | sample10_unittest.cc | 66 static int allocated() { return allocated_; } in allocated() function in __anon66d18ae10111::Water 82 initially_allocated_ = Water::allocated(); in OnTestStart() 87 int difference = Water::allocated() - initially_allocated_; in OnTestEnd()
|
/external/ltrace/ |
D | vect.c | 90 if (count > vec->allocated) { in vect_reserve() 91 size_t na = vec->allocated != 0 ? 2 * vec->allocated : 4; in vect_reserve() 98 vec->allocated = na; in vect_reserve() 100 assert(count <= vec->allocated); in vect_reserve()
|