Home
last modified time | relevance | path

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

12345678910>>...14

/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/
H A Dstandalone_malloc_test.cpp21 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 …]
H A Dsanitizer_chained_origin_depot_test.cpp78 EXPECT_GT(stats1.allocated, stats0.allocated); in TEST()
83 EXPECT_EQ(stats2.allocated, stats1.allocated); in TEST()
90 EXPECT_GT(chainedOriginDepot.GetStats().allocated, stats2.allocated); in TEST()
H A Dsanitizer_allocator_test.cpp260 void *x = allocated[i]; in TestSizeClassAllocator()
266 allocated.clear(); in TestSizeClassAllocator()
372 void *allocated[kNumAllocs]; in SizeClassAllocatorMetadataStress() local
376 allocated[i] = x; in SizeClassAllocatorMetadataStress()
618 char *p = allocated[i]; in TEST()
631 allocated[i] = x; in TEST()
642 char *p = allocated[idx]; in TEST()
709 allocated.push_back(x); in TestCombinedAllocator()
712 std::shuffle(allocated.begin(), allocated.end(), r); in TestCombinedAllocator()
731 void *x = allocated[i]; in TestCombinedAllocator()
[all …]
/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Posix/
H A Dnew_array_cookie_with_new_from_class.cpp18 static void *allocated; member
20 assert(!allocated); in Allocate()
21 return allocated = ::new char[s]; in Allocate()
26 void *Foo::allocated; member in Foo
35 fprintf(stderr, "alloc: %p\n", Foo::allocated); in main()
37 reinterpret_cast<uintptr_t>(Foo::allocated) + sizeof(void*)); in main()
38 *reinterpret_cast<uintptr_t*>(Foo::allocated) = 42; in main()
/llvm-project-15.0.7/clang/test/Analysis/
H A DMismatchedDeallocator-checker-test.mm24 …delete p; // expected-warning{{Memory allocated by malloc() should be deallocated by free(), not '…
30 …delete q; // expected-warning{{Memory allocated by realloc() should be deallocated by free(), not …
35 …delete p; // expected-warning{{Memory allocated by calloc() should be deallocated by free(), not '…
40 …delete p; // expected-warning{{Memory allocated by strdup() should be deallocated by free(), not '…
45 …delete p; // expected-warning{{Memory allocated by my_malloc() should be deallocated by free(), no…
55 …delete[] p; // expected-warning{{Memory allocated by malloc() should be deallocated by free(), not…
65 delete p; // expected-warning{{Memory allocated by alloca() should not be deallocated}}
71 …free(p); // expected-warning{{Memory allocated by 'new' should be deallocated by 'delete', not fre…
81 …free(p); // expected-warning{{Memory allocated by 'new[]' should be deallocated by 'delete[]', not…
210 …// expected-warning@-1 {{Memory allocated by 'new[]' should be deallocated by 'delete[]', not 'del…
[all …]
H A DNewDelete-intersections.mm47 …// mismatch-warning@-1{{Memory allocated by malloc() should be deallocated by free(), not 'delete'…
62 …// mismatch-warning@-1{{Memory allocated by operator new should be deallocated by 'delete', not fr…
68 // mismatch-warning@-1{{Memory allocated by 'new' should be deallocated by 'delete', not free()}}
75 …@-1{{+dataWithBytesNoCopy:length:freeWhenDone: cannot take ownership of memory allocated by 'new'}}
/llvm-project-15.0.7/clang/test/SemaObjC/
H A 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}}
/llvm-project-15.0.7/mlir/tools/mlir-vulkan-runner/
H A Dvulkan-runtime-wrappers.cpp75 T *allocated; member
88 VulkanHostMemoryBuffer memBuffer{ptr->allocated, size}; in bindMemRef()
155 std::fill_n(ptr->allocated, ptr->sizes[0], value); in _mlir_ciface_fillResource1DFloat()
162 std::fill_n(ptr->allocated, ptr->sizes[0] * ptr->sizes[1], value); in _mlir_ciface_fillResource2DFloat()
169 std::fill_n(ptr->allocated, ptr->sizes[0] * ptr->sizes[1] * ptr->sizes[2], in _mlir_ciface_fillResource3DFloat()
177 std::fill_n(ptr->allocated, ptr->sizes[0], value); in _mlir_ciface_fillResource1DInt()
184 std::fill_n(ptr->allocated, ptr->sizes[0] * ptr->sizes[1], value); in _mlir_ciface_fillResource2DInt()
191 std::fill_n(ptr->allocated, ptr->sizes[0] * ptr->sizes[1] * ptr->sizes[2], in _mlir_ciface_fillResource3DInt()
199 std::fill_n(ptr->allocated, ptr->sizes[0], value); in _mlir_ciface_fillResource1DInt8()
206 std::fill_n(ptr->allocated, ptr->sizes[0] * ptr->sizes[1], value); in _mlir_ciface_fillResource2DInt8()
[all …]
/llvm-project-15.0.7/llvm/test/Bitcode/
H A Dallocated.ll6 …+}}, size: 32, align: 32, elements: !{{[0-9]+}}, dataLocation: !{{[0-9]+}}, allocated: !{{[0-9]+}})
7 …}, dataLocation: !DIExpression(DW_OP_push_object_address, DW_OP_deref), allocated: !DIExpression(D…
9 ; ModuleID = 'allocated.f90'
10 source_filename = "/dir/allocated.ll"
18 !3 = !DIFile(filename: "allocated.f90", directory: "/dir")
21 …TAG_array_type, baseType: !7, size: 32, align: 32, elements: !8, dataLocation: !10, allocated: !15)
32 …8, dataLocation: !DIExpression(DW_OP_push_object_address, DW_OP_deref), allocated: !DIExpression(D…
/llvm-project-15.0.7/llvm/test/tools/llvm-pdbutil/
H A Dexplain.test37 ZERO-NEXT: Address is in block 0 (allocated).
42 FORTY-NEXT: Address is in block 0 (allocated).
48 SIXTY-NEXT: Address is in block 0 (allocated).
53 FPM1-NEXT: Address is in block 1 (allocated).
56 FPM1-NEXT: Status = 00000011 (Note: 0 = allocated, 1 = free)
59 EXTRANEOUSFPM-NEXT: Address is in block 1 (allocated).
64 FPM2-NEXT: Address is in block 2 (allocated).
73 STREAM-NEXT: Address is in block 7 (allocated).
77 STREAMDIR-NEXT: Address is in block 26 (allocated).
81 DIRBLOCKLIST-NEXT: Address is in block 27 (allocated).
[all …]
H A Dexplain-dbi-stream.test30 CHECK-NEXT: Address is in block 15 (allocated).
38 CHECK-NEXT: Address is in block 15 (allocated).
46 CHECK-NEXT: Address is in block 15 (allocated).
54 CHECK-NEXT: Address is in block 15 (allocated).
62 CHECK-NEXT: Address is in block 15 (allocated).
70 CHECK-NEXT: Address is in block 15 (allocated).
78 CHECK-NEXT: Address is in block 15 (allocated).
86 CHECK-NEXT: Address is in block 15 (allocated).
94 CHECK-NEXT: Address is in block 15 (allocated).
102 CHECK-NEXT: Address is in block 15 (allocated).
[all …]
H A Dexplain-pdb-stream.test13 CHECK-NEXT: Address is in block 17 (allocated).
21 CHECK-NEXT: Address is in block 17 (allocated).
29 CHECK-NEXT: Address is in block 17 (allocated).
37 CHECK-NEXT: Address is in block 17 (allocated).
45 CHECK-NEXT: Address is in block 17 (allocated).
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_symbolizer_libbacktrace.cpp44 uptr size, allocated; member
51 if (needed > data->allocated) { in CplusV3DemangleCallback()
52 data->allocated *= 2; in CplusV3DemangleCallback()
53 if (needed > data->allocated) in CplusV3DemangleCallback()
54 data->allocated = needed; in CplusV3DemangleCallback()
55 char *buf = (char *)InternalAlloc(data->allocated); in CplusV3DemangleCallback()
72 data.allocated = 0; in CplusV3Demangle()
75 if (data.size + 64 > data.allocated) in CplusV3Demangle()
H A Dsanitizer_common_libcdep.cpp48 stack_depot_stats.allocated) { in BackgroundThread()
50 stack_depot_stats.n_uniq_ids, stack_depot_stats.allocated >> 20); in BackgroundThread()
51 prev_reported_stack_depot_size = stack_depot_stats.allocated; in BackgroundThread()
/llvm-project-15.0.7/compiler-rt/lib/dfsan/
H A Ddfsan_allocator.cpp97 void *allocated; in DFsanAllocate() local
100 allocated = allocator.Allocate(cache, size, alignment); in DFsanAllocate()
104 allocated = allocator.Allocate(cache, size, alignment); in DFsanAllocate()
106 if (UNLIKELY(!allocated)) { in DFsanAllocate()
114 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in DFsanAllocate()
117 internal_memset(allocated, 0, size); in DFsanAllocate()
118 dfsan_set_label(0, allocated, size); in DFsanAllocate()
120 dfsan_set_label(0, allocated, size); in DFsanAllocate()
122 return allocated; in DFsanAllocate()
/llvm-project-15.0.7/compiler-rt/test/tsan/
H A Dmmap_lots.cpp19 size_t allocated = 0; in main() local
22 allocated += mmap_size; in main()
24 fprintf(stderr, "allocated %zu with size %zu\n", allocated, mmap_size); in main()
/llvm-project-15.0.7/compiler-rt/lib/msan/
H A Dmsan_allocator.cpp169 void *allocated; in MsanAllocate() local
172 allocated = allocator.Allocate(cache, size, alignment); in MsanAllocate()
176 allocated = allocator.Allocate(cache, size, alignment); in MsanAllocate()
178 if (UNLIKELY(!allocated)) { in MsanAllocate()
185 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in MsanAllocate()
188 __msan_clear_and_unpoison(allocated, size); in MsanAllocate()
190 __msan_poison(allocated, size); in MsanAllocate()
194 __msan_set_origin(allocated, size, o.raw_id()); in MsanAllocate()
198 RunMallocHooks(allocated, size); in MsanAllocate()
199 return allocated; in MsanAllocate()
/llvm-project-15.0.7/compiler-rt/lib/hwasan/
H A Dhwasan_allocator.cpp144 void *allocated; in HwasanAllocate() local
146 allocated = allocator.Allocate(t->allocator_cache(), size, alignment); in HwasanAllocate()
150 allocated = allocator.Allocate(cache, size, alignment); in HwasanAllocate()
152 if (UNLIKELY(!allocated)) { in HwasanAllocate()
159 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in HwasanAllocate()
164 internal_memset(allocated, 0, size); in HwasanAllocate()
167 internal_memset(allocated, flags()->malloc_fill_byte, fill_size); in HwasanAllocate()
170 u8 *tail = reinterpret_cast<u8 *>(allocated) + orig_size; in HwasanAllocate()
177 void *user_ptr = allocated; in HwasanAllocate()
192 reinterpret_cast<u8 *>(allocated) + full_granule_size; in HwasanAllocate()
/llvm-project-15.0.7/mlir/test/Dialect/Transform/
H A Dcheck-use-after-free.mlir4 // expected-note @below {{allocated here}}
31 // expected-note @below {{allocated here}}
60 // expected-note @below {{allocated here}}
92 // expected-note @below {{allocated here}}
120 // expected-note @below {{allocated here}}
149 // expected-note @below {{allocated here}}
/llvm-project-15.0.7/llvm/test/DebugInfo/X86/
H A Ddwarfdump-allocatedExp.ll20 ; ModuleID = 'allocated.ll'
21 source_filename = "allocated.ll"
43 !3 = !DIFile(filename: "allocated.f90", directory: "/dir")
49 …1, dataLocation: !DIExpression(DW_OP_push_object_address, DW_OP_deref), allocated: !DIExpression(D…
H A Ddwarfdump-allocatedVar.ll29 ; ModuleID = 'allocated.ll'
30 source_filename = "allocated.ll"
53 !3 = !DIFile(filename: "allocated.f90", directory: "/dir")
59 …G_array_type, baseType: !10, size: 32, align: 32, elements: !11, dataLocation: !13, allocated: !15)
/llvm-project-15.0.7/clang/test/Analysis/Checkers/
H A DRunLoopAutoreleaseLeakChecker.m32 …NSObject *object = [[NSObject alloc] init]; // expected-warning{{Temporary objects allocated in th…
51 …NSObject *object = [[NSObject alloc] init]; // expected-warning{{Temporary objects allocated in th…
59 …NSObject *object = [[NSObject alloc] init]; // expected-warning{{Temporary objects allocated in th…
84 …NSObject *object = [[NSObject alloc] init]; // expected-warning{{Temporary objects allocated in th…
94 …NSObject *object = [[NSObject alloc] init]; // expected-warning{{Temporary objects allocated in th…
125 …NSObject *object = [[NSObject alloc] init]; // expected-warning{{Temporary objects allocated in th…
159 …[i foo]; // no-crash // expected-warning{{Temporary objects allocated in the autorelease pool of l…
/llvm-project-15.0.7/llvm/test/Verifier/
H A Darray_allocated.ll4 !0 = !DICompositeType(tag: DW_TAG_structure_type, name: "A", size: 64, allocated: !DIExpression(DW_…
6 ; CHECK: allocated can only appear in array type
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/
H A Dwrappers_c.inc43 // Space allocated in mmapped regions (bytes)
45 // Maximum total allocated space (bytes)
49 // Total allocated space (bytes)
61 // Space allocated in mmapped regions (bytes)
63 // Maximum total allocated space (bytes)
67 // Total allocated space (bytes)
267 // Sets whether scudo zero-initializes all allocated memory.
273 // Sets whether scudo pattern-initializes all allocated memory.
/llvm-project-15.0.7/clang/test/Analysis/copypaste/Inputs/expected-plists/
H A DMismatchedDeallocator-path-notes.cpp.plist138 <string>Memory is allocated</string>
140 <string>Memory is allocated</string>
167 <string>Returned allocated memory</string>
169 <string>Returned allocated memory</string>
264 …<string>Memory allocated by &apos;new[]&apos; should be deallocated by &apos;delete[]&apos;, not &…
266 …<string>Memory allocated by &apos;new[]&apos; should be deallocated by &apos;delete[]&apos;, not &…
269 …<key>description</key><string>Memory allocated by &apos;new[]&apos; should be deallocated by &apos…

12345678910>>...14