Home
last modified time | relevance | path

Searched full:allocated (Results 1 – 25 of 7744) sorted by relevance

12345678910>>...310

/external/dng_sdk/source/
Ddng_memory.h88 /// Release any allocated memory using free. Object is still valid and
93 /// Return pointer to allocated memory as a void *..
94 /// \retval void * valid for as many bytes as were allocated.
101 /// Return pointer to allocated memory as a const void *.
102 /// \retval const void * valid for as many bytes as were allocated.
109 /// Return pointer to allocated memory as a char *.
110 /// \retval char * valid for as many bytes as were allocated.
117 /// Return pointer to allocated memory as a const char *.
118 /// \retval const char * valid for as many bytes as were allocated.
125 /// Return pointer to allocated memory as a uint8 *.
[all …]
Ddng_ref_counted_block.h95 /// Release any allocated memory using free. Object is still valid and
104 /// Return pointer to allocated memory as a void *..
105 /// \retval void * valid for as many bytes as were allocated.
117 /// Return pointer to allocated memory as a const void *.
118 /// \retval const void * valid for as many bytes as were allocated.
125 /// Return pointer to allocated memory as a char *.
126 /// \retval char * valid for as many bytes as were allocated.
133 /// Return pointer to allocated memory as a const char *.
134 /// \retval const char * valid for as many bytes as were allocated.
141 /// Return pointer to allocated memory as a uint8 *.
[all …]
/external/clang/test/SemaCXX/
Ddelete.cpp14 int *a = new int[5]; // expected-note4 {{allocated with 'new[]' here}}
21 …delete a; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in ~S()
22 …delete b; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; d… in ~S()
23 …delete[] c; // expected-warning {{'delete[]' applied to a pointer that was allocated with 'new'; d… in ~S()
30 …delete a; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in f()
31 …delete b; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in f()
35 : b(new int[1]), c(new int) {} // expected-note3 {{allocated with 'new[]' here}} in S()
36 // expected-note@-1 {{allocated with 'new' here}}
39 : b(new int[i]), c(new int) {} // expected-note3 {{allocated with 'new[]' here}} in S()
40 // expected-note@-1 {{allocated with 'new' here}}
[all …]
/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 …]
/external/gwp_asan/gwp_asan/tests/
Diterate.cpp17 std::vector<std::pair<void *, size_t>> Allocated; in TEST_F() local
19 Allocated.push_back({GPA.allocate(size), size}); in TEST_F()
28 std::sort(Allocated.begin(), Allocated.end()); in TEST_F()
31 void *Base = Allocated[0].first; in TEST_F()
32 size_t Size = reinterpret_cast<size_t>(Allocated.back().first) - in TEST_F()
45 EXPECT_EQ(Allocated, Found); in TEST_F()
49 Size = reinterpret_cast<size_t>(Allocated.back().first) - in TEST_F()
50 reinterpret_cast<size_t>(Base); // Allocated.back() is out of range. in TEST_F()
64 GPA.deallocate(Allocated.back().first); in TEST_F()
65 Allocated.pop_back(); in TEST_F()
[all …]
/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/
DBnMemory.c56 pAssert(top <= bn->allocated); in BnSetTop()
81 for(i = bn->size; i < bn->allocated; i++) in BnClearTop()
90 // This function is used to initialize an allocated bigNum with a word value. The
91 // bigNum does not have to be allocated with a single word.
95 crypt_uword_t allocated, // IN: in BnInitializeWord() argument
99 bn->allocated = allocated; in BnInitializeWord()
102 while(allocated > 1) in BnInitializeWord()
103 bn->d[--allocated] = 0; in BnInitializeWord()
108 // This function initializes a stack allocated bignum_t. It initializes
109 // 'allocated' and 'size' and zeros the words of 'd'.
[all …]
/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 …]
Dfree.c9 …ent to free() is the address of the local variable 'a', which is not memory allocated by malloc()}} in t1()
14 …ent to free() is the address of the local variable 'a', which is not memory allocated by malloc()}} in t2()
19 …nt to free() is the address of the static variable 'a', which is not memory allocated by malloc()}} in t3()
32 …ning {{Argument to free() is a constant address (1000), which is not memory allocated by malloc()}} in t6()
46 …Argument to free() is the address of the label 'label', which is not memory allocated by malloc()}} in t9()
50 …rgument to free() is the address of the function 't10', which is not memory allocated by malloc()}} in t10()
55 free(p); // expected-warning {{Memory allocated by alloca() should not be deallocated}} in t11()
60 free(p); // expected-warning {{Memory allocated by alloca() should not be deallocated}} in t12()
64 …); // expected-warning {{Argument to free() is a block, which is not memory allocated by malloc()}} in t13()
68 …Argument to free() is the address of the parameter 'a', which is not memory allocated by malloc()}} in t14()
[all …]
/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/federated-compute/fcp/aggregation/core/
Dinput_tensor_list.cc40 // Since the `allocated` union member is a class with user-defined in InputTensorList()
44 new (&data_storage_.allocated) std::vector<const Tensor*>(size); in InputTensorList()
45 data_ptr_ = data_storage_.allocated.data(); in InputTensorList()
59 // Destroy any existing allocated storage. in operator =()
61 data_storage_.allocated.~vector(); in operator =()
71 new (&data_storage_.allocated) std::vector<const Tensor*>; in MoveData()
72 data_storage_.allocated = std::move(other.data_storage_.allocated); in MoveData()
73 data_ptr_ = data_storage_.allocated.data(); in MoveData()
74 other.data_storage_.allocated.~vector(); in MoveData()
89 // Since the `allocated` union member is a class with user-defined in ~InputTensorList()
[all …]
/external/skia/src/base/
DSkAutoMalloc.h21 * Manage an allocated block of heap memory. This object is the sole manager of
32 * than the current size (and the current block was dynamically allocated).
37 * current block is dynamically allocated, free the old block and
44 * current block is dynamically allocated, just return the old
62 * Return the allocated block.
85 * Manage an allocated block of memory. If the requested size is <= kSizeRequested (or slightly
94 * Must call reset(size) to return an allocated block.
103 * the allocation will come from the stack, otherwise it will be dynamically allocated.
112 * Free the allocated block (if any). If the block was small enough to have been allocated on
122 * Return the allocated block. May return non-null even if the block is of zero size. Since
[all …]
/external/jemalloc_new/test/unit/
Dstats.c4 size_t sz, allocated, active, resident, mapped; in TEST_BEGIN() local
8 assert_d_eq(mallctl("stats.allocated", (void *)&allocated, &sz, NULL, in TEST_BEGIN()
18 assert_zu_le(allocated, active, in TEST_BEGIN()
19 "allocated should be no larger than active"); in TEST_BEGIN()
31 size_t allocated; in TEST_BEGIN() local
43 assert_d_eq(mallctl("stats.arenas.0.large.allocated", in TEST_BEGIN()
44 (void *)&allocated, &sz, NULL, 0), expected, in TEST_BEGIN()
56 assert_zu_gt(allocated, 0, in TEST_BEGIN()
57 "allocated should be greater than zero"); in TEST_BEGIN()
145 size_t sz, allocated; in TEST_BEGIN() local
[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/bazelbuild-rules_rust/test/cc_common_link/with_global_alloc/
Dmain.rs4 static ALLOCATED: AtomicUsize = AtomicUsize::new(0); constant
12 ALLOCATED.fetch_add(layout.size(), SeqCst); in alloc()
19 ALLOCATED.fetch_sub(layout.size(), SeqCst); in dealloc()
27 println!("allocated bytes before main: {}", ALLOCATED.load(SeqCst)); in main()
36 // Allocated bytes before main in test_global_alloc_was_used()
37 let bytes_start = ALLOCATED.load(SeqCst); in test_global_alloc_was_used()
42 let bytes_end = ALLOCATED.load(SeqCst); in test_global_alloc_was_used()
/external/pigweed/pw_allocator/examples/
Dcustom_allocator.cc31 // Allocates, and reports if allocated memory exceeds its threshold.
38 pw::Result<Layout> allocated = GetAllocatedLayout(allocator_, ptr); in DoAllocate() local
39 if (allocated.ok()) { in DoAllocate()
40 used_ += allocated->size(); in DoAllocate()
43 PW_LOG_INFO("more than %zu bytes allocated.", threshold_); in DoAllocate()
52 pw::Result<Layout> allocated = GetAllocatedLayout(allocator_, ptr); in DoDeallocate() local
53 if (allocated.ok()) { in DoDeallocate()
54 used_ -= allocated->size(); in DoDeallocate()
/external/python/cpython2/Misc/
DSpecialBuilds.txt41 two more pointers, to maintain a doubly-linked list of all live heap-allocated
43 allocated. Starting in Python 2.3, if COUNT_ALLOCS (see below) is also defined,
55 Return list of the (no more than) max most-recently allocated objects, most
56 recently allocated first in the list, least-recently allocated last in the
88 This mode fills dynamically allocated memory blocks with special, recognizable
89 bit patterns, and adds debugging info on each end of dynamically allocated
92 #define CLEANBYTE 0xCB /* clean (newly allocated) memory */
143 stderr whenever a new arena is allocated, and also by Py_Finalize().
145 Changed in 2.5: The number of extra bytes allocated is 4*sizeof(size_t).
166 /* Number of times an object of this type was allocated. */
[all …]
/external/cronet/third_party/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
107 ### Stack-allocated types
[all …]
/external/dlmalloc/
Ddlmalloc.h84 MALLINFO_FIELD_TYPE arena; /* non-mmapped space allocated from system */
89 MALLINFO_FIELD_TYPE usmblks; /* maximum total allocated space */
91 MALLINFO_FIELD_TYPE uordblks; /* total allocated space */
102 Returns a pointer to a newly allocated chunk of at least n bytes, or
119 allocated using malloc or a related routine such as realloc.
158 Resizes the space allocated for p to size n, only if this can be
160 available if n is greater than p's current allocated size, or n is
173 Returns a pointer to a newly allocated chunk of n bytes, aligned
189 allocated memory to *pp rather than returning it, (2) fails and
191 returns ENOMEM if memory cannot be allocated.
[all …]
/external/trusty/lk/external/lib/heap/dlmalloc/include/lib/
Ddlmalloc.h88 MALLINFO_FIELD_TYPE arena; /* non-mmapped space allocated from system */
93 MALLINFO_FIELD_TYPE usmblks; /* maximum total allocated space */
95 MALLINFO_FIELD_TYPE uordblks; /* total allocated space */
106 Returns a pointer to a newly allocated chunk of at least n bytes, or
123 allocated using malloc or a related routine such as realloc.
162 Resizes the space allocated for p to size n, only if this can be
164 available if n is greater than p's current allocated size, or n is
177 Returns a pointer to a newly allocated chunk of n bytes, aligned
193 allocated memory to *pp rather than returning it, (2) fails and
195 returns ENOMEM if memory cannot be allocated.
[all …]
/external/pigweed/pw_allocator/public/pw_allocator/
Dtest_harness.h31 /// Represents a request to free some allocated memory.
36 /// Represents a request to reallocate allocated memory with a new size.
49 /// Associates an `Allocator` with a vector to store allocated pointers.
57 /// size of the vector used to store allocated pointers.
90 /// This method is stateful, and modifies the vector of allocated pointers.
106 /// Deallocates any pointers stored in the vector of allocated pointers.
122 /// Adds a pointer to the vector of allocated pointers.
124 /// The `ptr` must not be null, and the vector of allocated pointers must not
133 /// Removes and returns a previously allocated pointer.
135 /// The vector of allocated pointers must not be empty.
[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/python/cpython3/Include/internal/
Dpycore_blocks_output_buffer.h46 // Number of whole allocated size
47 Py_ssize_t allocated; member
68 allocated size growth step is:
98 On success, return allocated size (>=0)
134 buffer->allocated = block_size; in _BlocksOutputBuffer_InitAndGrow()
146 On success, return allocated size (>=0)
175 buffer->allocated = init_size; in _BlocksOutputBuffer_InitWithSize()
184 On success, return allocated size (>=0)
213 Py_ssize_t rest = buffer->max_length - buffer->allocated; in _BlocksOutputBuffer_Grow()
222 // check buffer->allocated overflow in _BlocksOutputBuffer_Grow()
[all …]
/external/harfbuzz_ng/src/
Dhb-vector.hh81 allocated = o.allocated; in hb_vector_t()
89 int allocated = 0; /* < 0 means allocation failed. */ member
96 allocated = length = 0; in init()
107 * allocated is zero. Don't free anything. */ in fini()
108 if (allocated) in fini()
125 hb_swap (a.allocated, b.allocated); in swap()
213 if (unlikely ((int) length >= allocated && !alloc (length + 1))) in push()
224 bool in_error () const { return allocated < 0; } in in_error()
227 assert (allocated >= 0); in set_error()
228 allocated = -allocated - 1; in set_error()
[all …]
/external/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate04.c103 tst_res(TINFO, "read allocated file size '%zu'", alloc_size0); in test02()
132 tst_res(TINFO, "allocated file size before '%zu' and after '%zu'", in test02()
135 tst_brk(TFAIL, "not expected allocated size"); in test02()
158 tst_res(TINFO, "read current allocated file size '%zu'", alloc_size0); in test03()
169 /* The file hole in the specified range must be allocated and in test03()
174 tst_res(TINFO, "allocated file size before '%zu' and after '%zu'", in test03()
177 tst_brk(TFAIL, "not expected allocated size"); in test03()
195 tst_res(TINFO, "read current allocated file size '%zu'", alloc_size0); in test04()
208 tst_res(TINFO, "allocated file size before '%zu' and after '%zu'", in test04()
211 tst_brk(TFAIL, "not expected allocated size"); in test04()
[all …]

12345678910>>...310