Home
last modified time | relevance | path

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

12345678910>>...23

/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.c32 struct region_el *allocated; member
52 for (r = region->allocated; r; r = next) { in region_free()
78 for (r = region->allocated, prev=NULL; r; prev = r, r = r->next) { in region_allocate()
116 region->allocated = new_region; in region_allocate()
164 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.cc100 std::vector<void *> allocated; in TestSizeClassAllocator() local
117 allocated.push_back(x); in TestSizeClassAllocator()
132 for (uptr i = 0; i < allocated.size(); i++) { in TestSizeClassAllocator()
133 void *x = allocated[i]; in TestSizeClassAllocator()
139 allocated.clear(); in TestSizeClassAllocator()
179 void *allocated[kNumAllocs]; in SizeClassAllocatorMetadataStress() local
183 allocated[i] = x; in SizeClassAllocatorMetadataStress()
189 void *m = a->GetMetaData(allocated[idx]); in SizeClassAllocatorMetadataStress()
193 cache.Deallocate(a, 1 + i % 50, allocated[i]); in SizeClassAllocatorMetadataStress()
351 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/jemalloc/test/unit/
Dstats.c6 size_t sz, allocated, active, resident, mapped; in TEST_BEGIN() local
14 assert_d_eq(mallctl("stats.allocated", (void *)&allocated, &sz, NULL, 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", (void *)&allocated, in TEST_BEGIN()
63 assert_zu_gt(allocated, 0, in TEST_BEGIN()
146 size_t sz, allocated; in TEST_BEGIN() local
167 (void *)&allocated, &sz, NULL, 0), expected, in TEST_BEGIN()
179 assert_zu_gt(allocated, 0, in TEST_BEGIN()
197 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()
Daddressable.stderr.exp5 total heap usage: ... allocs, ... frees, ... bytes allocated
34 total heap usage: ... allocs, ... frees, ... bytes allocated
43 total heap usage: ... allocs, ... frees, ... bytes allocated
57 total heap usage: ... allocs, ... frees, ... bytes allocated
76 total heap usage: ... allocs, ... frees, ... bytes allocated
86 total heap usage: ... allocs, ... frees, ... bytes allocated
/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/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/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/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/boringssl/src/
DAPI-CONVENTIONS.md73 ### Heap-allocated types
75 Some types, such as `RSA`, are heap-allocated. All instances will be allocated
77 allocated type on the stack or embedded within another object.
79 Heap-allocated types may have functioned named like `RSA_new` which allocates a
80 fresh blank `RSA`. Other functions may also return newly-allocated instances.
81 For example, `RSA_parse_public_key` is documented to return a newly-allocated
84 Heap-allocated objects must be released by the corresponding free function,
89 A heap-allocated type may be reference-counted. In this case, a function named
96 C++ consumers are recommended to use `bssl::UniquePtr` to manage heap-allocated
104 ### Stack-allocated types
[all …]
/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/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/v8/tools/clang/blink_gc_plugin/tests/
Dstack_allocated.txt11 ./stack_allocated.h:30:5: note: [blink-gc] Stack-allocated field 'm_part' declared here:
12 StackObject m_part; // Cannot embed a stack allocated object.
14 ./stack_allocated.h:34:27: warning: [blink-gc] Stack-allocated class 'DerivedHeapObject' derives cl…
17 ./stack_allocated.h:38:28: warning: [blink-gc] Stack-allocated class 'DerivedHeapObject2' derives c…
/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/v8/testing/gtest/samples/
Dsample10_unittest.cc66 static int allocated() { return allocated_; } in allocated() function in __anon1ff8dcab0111::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/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/googletest/googletest/samples/
Dsample10_unittest.cc66 static int allocated() { return allocated_; } in allocated() function in __anon0989c2e30111::Water
82 initially_allocated_ = Water::allocated(); in OnTestStart()
87 int difference = Water::allocated() - initially_allocated_; in OnTestEnd()
/external/webp/src/enc/
Dpicture_psnr_enc.c131 uint8_t* allocated = NULL; in WebPPlaneDistortion() local
146 allocated = in WebPPlaneDistortion()
147 (uint8_t*)WebPSafeMalloc(2ULL * width * height, sizeof(*allocated)); in WebPPlaneDistortion()
148 if (allocated == NULL) return 0; in WebPPlaneDistortion()
149 tmp1 = allocated; in WebPPlaneDistortion()
161 WebPSafeFree(allocated); in WebPPlaneDistortion()

12345678910>>...23