Home
last modified time | relevance | path

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

12345678910>>...21

/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.cc90 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/
Dnew_array_cookie_with_new_from_class.cc15 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/
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…
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/
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/v8/test/unittests/compiler/
Dzone-pool-unittest.cc134 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/
Dstats.c6 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/
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/v8/src/interpreter/
Dbytecode-register-allocator.cc30 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/
Dsanitizer_symbolizer_libbacktrace.cc45 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/
Dmsan_allocator.cc118 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/
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/pdfium/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/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/opencv3/modules/core/src/
Dalloc.cpp245 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/
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/elfutils/libdw/
Ddwarf_getpubnames.c46 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/
Ddbus-cleanup-sockets.c176 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/
Dscsi.c49 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/
Dsample10_unittest.cc66 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/
Dsample10_unittest.cc66 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/
Dsample10_unittest.cc66 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/
Dvect.c90 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()

12345678910>>...21