Home
last modified time | relevance | path

Searched refs:allocated (Results 1 – 25 of 589) sorted by relevance

12345678910>>...24

/external/e2fsprogs/e2fsck/
Dmtrace.awk5 $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 …]
Dregion.c31 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/
Dstandalone_malloc_test.cc21 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 …]
Dsanitizer_allocator_test.cc87 std::vector<void *> allocated; in TestSizeClassAllocator() local
104 allocated.push_back(x); in TestSizeClassAllocator()
119 for (uptr i = 0; i < allocated.size(); i++) { in TestSizeClassAllocator()
120 void *x = allocated[i]; in TestSizeClassAllocator()
126 allocated.clear(); in TestSizeClassAllocator()
166 void *allocated[kNumAllocs]; in SizeClassAllocatorMetadataStress() local
170 allocated[i] = x; in SizeClassAllocatorMetadataStress()
176 void *m = a->GetMetaData(allocated[idx]); in SizeClassAllocatorMetadataStress()
180 cache.Deallocate(a, 1 + i % 50, allocated[i]); in SizeClassAllocatorMetadataStress()
339 char *allocated[kNumAllocs]; in TEST() local
[all …]
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/
Dlow_level_alloc_unittest.cc83 AllocMap allocated; in Test() local
110 it = allocated.find(rnd); in Test()
111 if (it != allocated.end()) { in Test()
118 allocated[rnd] = block_desc; in Test()
122 it = allocated.begin(); in Test()
123 if (it != allocated.end()) { in Test()
128 allocated.erase(it); in Test()
134 while ((it = allocated.begin()) != allocated.end()) { in Test()
139 allocated.erase(it); in Test()
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/
Dlow_level_alloc_unittest.cc83 AllocMap allocated; in Test() local
110 it = allocated.find(rnd); in Test()
111 if (it != allocated.end()) { in Test()
118 allocated[rnd] = block_desc; in Test()
122 it = allocated.begin(); in Test()
123 if (it != allocated.end()) { in Test()
128 allocated.erase(it); in Test()
134 while ((it = allocated.begin()) != allocated.end()) { in Test()
139 allocated.erase(it); in Test()
/external/clang/test/SemaObjC/
Dinvalid-objc-decls-1.m4 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/clang/test/Analysis/
DMismatchedDeallocator-checker-test.mm23 …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…
65 …free(p); // expected-warning{{Memory allocated by 'new' should be deallocated by 'delete', not fre…
70 …free(p); // expected-warning{{Memory allocated by operator new should be deallocated by 'delete', …
[all …]
/external/bluetooth/bluedroid/stack/avct/
Davct_lcb.c201 …AVCT_TRACE_EVENT("LCB lcb=%d event=%s state=%s", p_lcb->allocated, avct_lcb_evt_str[event], avct_l… in avct_lcb_event()
203 AVCT_TRACE_EVENT("LCB lcb=%d event=%d state=%d", p_lcb->allocated, event, p_lcb->state); in avct_lcb_event()
244 …AVCT_TRACE_EVENT("BCB lcb=%d event=%s state=%s", p_bcb->allocated, avct_lcb_evt_str[event], avct_l… in avct_bcb_event()
246 AVCT_TRACE_EVENT("BCB lcb=%d event=%d state=%d", p_bcb->allocated, event, p_bcb->state); in avct_bcb_event()
288 if (p_lcb->allocated && (!memcmp(p_lcb->peer_addr, bd_addr, BD_ADDR_LEN))) in avct_lcb_by_bd()
322 if (!p_lcb->allocated) in avct_lcb_alloc()
324 p_lcb->allocated = (UINT8)(i + 1); in avct_lcb_alloc()
326 AVCT_TRACE_DEBUG("avct_lcb_alloc %d", p_lcb->allocated); in avct_lcb_alloc()
357 AVCT_TRACE_DEBUG("avct_lcb_dealloc %d", p_lcb->allocated); in avct_lcb_dealloc()
362 if (p_ccb->allocated) in avct_lcb_dealloc()
[all …]
/external/jemalloc/test/unit/
Dstats.c6 size_t sz, allocated, active, mapped; in TEST_BEGIN() local
14 assert_d_eq(mallctl("stats.allocated", &allocated, &sz, NULL, 0), in TEST_BEGIN()
24 assert_zu_le(allocated, active, in TEST_BEGIN()
62 size_t allocated; in TEST_BEGIN() local
74 assert_d_eq(mallctl("stats.arenas.0.huge.allocated", &allocated, &sz, in TEST_BEGIN()
85 assert_zu_gt(allocated, 0, in TEST_BEGIN()
165 size_t sz, allocated; in TEST_BEGIN() local
185 assert_d_eq(mallctl("stats.arenas.0.small.allocated", &allocated, &sz, in TEST_BEGIN()
196 assert_zu_gt(allocated, 0, in TEST_BEGIN()
214 size_t sz, allocated; in TEST_BEGIN() local
[all …]
/external/valgrind/main/memcheck/tests/
Dleak-pool.c17 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/chromium_org/third_party/leveldatabase/src/util/
Darena_test.cc19 std::vector<std::pair<size_t, char*> > allocated; in TEST() local
48 allocated.push_back(std::make_pair(s, r)); in TEST()
54 for (size_t i = 0; i < allocated.size(); i++) { in TEST()
55 size_t num_bytes = allocated[i].first; in TEST()
56 const char* p = allocated[i].second; in TEST()
/external/compiler-rt/lib/msan/
Dmsan_allocator.cc88 void *allocated; in MsanAllocate() local
91 allocated = allocator.Allocate(cache, size, alignment, false); in MsanAllocate()
95 allocated = allocator.Allocate(cache, size, alignment, false); in MsanAllocate()
98 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in MsanAllocate()
101 __msan_clear_and_unpoison(allocated, size); in MsanAllocate()
103 __msan_poison(allocated, size); in MsanAllocate()
109 __msan_set_origin(allocated, size, Origin(id, 1).raw_id()); in MsanAllocate()
112 MSAN_MALLOC_HOOK(allocated, size); in MsanAllocate()
113 return allocated; in MsanAllocate()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_symbolizer_libbacktrace.cc43 uptr size, allocated; member
50 if (needed > data->allocated) { in CplusV3DemangleCallback()
51 data->allocated *= 2; in CplusV3DemangleCallback()
52 if (needed > data->allocated) in CplusV3DemangleCallback()
53 data->allocated = needed; in CplusV3DemangleCallback()
54 char *buf = (char *)InternalAlloc(data->allocated); in CplusV3DemangleCallback()
71 data.allocated = 0; in CplusV3Demangle()
74 if (data.size + 64 > data.allocated) in CplusV3Demangle()
/external/strace/
Dscsi.c42 int allocated, i; in print_sg_io_buffer() local
46 allocated = (len > max_strlen) ? max_strlen : len; in print_sg_io_buffer()
48 (buf = malloc(allocated)) == NULL || in print_sg_io_buffer()
49 umoven(tcp, (unsigned long) addr, allocated, (char *) buf) < 0) { in print_sg_io_buffer()
55 for (i = 1; i < allocated; ++i) in print_sg_io_buffer()
58 if (allocated != len) in print_sg_io_buffer()
/external/chromium_org/third_party/cython/src/Cython/Utility/
Darrayarray.h55 Py_ssize_t allocated; member
85 op->allocated = size; in newarrayobject()
116 self->allocated = n; in resize()
125 if (n < self->allocated) { in resize_smart()
126 if (n*4 > self->allocated) { in resize_smart()
139 self->allocated = newsize; in resize_smart()
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/cff/
Dcf2arrst.c67 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/freetype/src/cff/
Dcf2arrst.c67 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/chromium_org/third_party/freetype/src/cff/
Dcf2arrst.c67 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/srec/portable/src/
Dpmemfixed.c140 unsigned int allocated; member
486 memStats[ii].allocated++; in PortMalloc()
493 if (memStats[ii].allocated > memStats[ii].max_alloc) in PortMalloc()
495 memStats[ii].max_alloc = memStats[ii].allocated; in PortMalloc()
615 memStats[poolId].allocated--; in PortFree()
662 … memStats[ii].allocated, memStats[ii].accAllocated, memStats[ii].accFreed, memStats[ii].max_alloc,… in displayMemStats()
666 totAlloc += memStats[ii].allocated; in displayMemStats()
673 bytesAllocWithOH += memStats[ii].allocated * (memBlockSize[ii] + MEM_BLOCK_HDR); in displayMemStats()
674 bytesAlloc += memStats[ii].allocated * memBlockSize[ii]; in displayMemStats()
/external/chromium_org/tools/clang/blink_gc_plugin/tests/
Dstack_allocated.txt8 …28: warning: [blink-gc] Stack-allocated class 'AnotherStackObject' derives class 'PartObject' whic…
14 ./stack_allocated.h:36:5: note: [blink-gc] Stack-allocated field 'm_part' declared here:
15 StackObject m_part; // Cannot embed a stack allocated object.
/external/e2fsprogs/intl/
Dvasnprintf.c142 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/elfutils/0.153/libdw/
Ddwarf_getpubnames.c67 size_t allocated = 0; in get_offsets() local
78 if (cnt >= allocated) in get_offsets()
80 allocated = MAX (10, 2 * allocated); in get_offsets()
82 = (struct pubnames_s *) realloc (mem, allocated * entsize); in get_offsets()
/external/valgrind/main/coregrind/m_demangle/
Ddyn-string.c85 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/chromium_org/testing/gtest/samples/
Dsample10_unittest.cc66 static int allocated() { return allocated_; } in allocated() function in __anon15dde3ff0111::Water
82 initially_allocated_ = Water::allocated(); in OnTestStart()
87 int difference = Water::allocated() - initially_allocated_; in OnTestEnd()

12345678910>>...24