Home
last modified time | relevance | path

Searched full:alloc (Results 1 – 25 of 3846) sorted by relevance

12345678910>>...154

/third_party/rust/rust/tests/ui/drop/
Ddynamic-drop.rs43 fn alloc(&self) -> Ptr<'_> { in alloc() method
61 let ptr = self.alloc(); in alloc_leaked()
92 _x = Some(a.alloc()); in dynamic_init()
97 let x = a.alloc(); in dynamic_drop()
111 x = (a.alloc(), a.alloc(), a.alloc()); in struct_dynamic_drop()
112 y = TwoPtrs(a.alloc(), a.alloc()); in struct_dynamic_drop()
122 let mut x = (TwoPtrs(a.alloc(), a.alloc()), a.alloc()); in field_assignment()
124 x.1 = a.alloc(); in field_assignment()
125 x.1 = a.alloc(); in field_assignment()
134 let mut _v = a.alloc(); in assignment2()
[all …]
Ddynamic-drop-async.rs66 fn alloc(&self) -> impl Future<Output = Ptr<'_>> + '_ { in alloc() method
101 _x = Some(a.alloc().await); in dynamic_init()
106 let x = a.alloc().await; in dynamic_drop()
120 x = (a.alloc().await, a.alloc().await, a.alloc().await); in struct_dynamic_drop()
121 y = TwoPtrs(a.alloc().await, a.alloc().await); in struct_dynamic_drop()
124 a.alloc().await; in struct_dynamic_drop()
126 a.alloc().await; in struct_dynamic_drop()
133 let mut x = (TwoPtrs(a.alloc().await, a.alloc().await), a.alloc().await); in field_assignment()
135 x.1 = a.alloc().await; in field_assignment()
136 x.1 = a.alloc().await; in field_assignment()
[all …]
/third_party/skia/src/gpu/vk/
DGrVkMemory.cpp48 GrVkAlloc* alloc, argument
51 GrVkAlloc* alloc) {
71 allocator->getAllocInfo(memory, alloc);
74 alloc->fBytes = size;
80 GR_VK_CALL_RESULT(gpu, err, BindBufferMemory(gpu->device(), buffer, alloc->fMemory,
81 alloc->fOffset));
83 FreeBufferMemory(gpu, *alloc);
93 GrVkAlloc* alloc) { argument
137 alloc->fMemory = memory;
138 alloc->fOffset = 0;
[all …]
/third_party/skia/m133/src/gpu/vk/
DVulkanMemory.cpp52 VulkanAlloc* alloc, in AllocBufferMemory() argument
55 VulkanAlloc* alloc) { in AllocBufferMemory()
76 allocator->getAllocInfo(memory, alloc); in AllocBufferMemory()
83 VulkanAlloc* alloc) { in AllocBufferMemory() argument
129 alloc->fMemory = memory; in AllocBufferMemory()
130 alloc->fOffset = 0; in AllocBufferMemory()
131 alloc->fSize = memReqs.size; in AllocBufferMemory()
132 alloc->fFlags = 0; in AllocBufferMemory()
133 alloc->fIsExternalMemory = true; in AllocBufferMemory()
138 void VulkanMemory::FreeBufferMemory(VulkanMemoryAllocator* allocator, const VulkanAlloc& alloc) { in AllocBufferMemory() argument
[all …]
/third_party/rust/rust/library/alloc/tests/
Dautotraits.rs35 // where with some unintentionally overconstrained Send impls in alloc's in test_btree_map()
39 let _v = None::<alloc::collections::btree_map::Iter<'_, &u32, &u32>>; in test_btree_map()
44 require_send_sync(None::<alloc::collections::btree_map::Iter<'_, &u32, &u32>>); in test_btree_map()
47 let _v = None::<alloc::collections::btree_map::Iter<'_, u32, NotSend>>; in test_btree_map()
52 let _v = None::<alloc::collections::btree_map::BTreeMap<&u32, &u32>>; in test_btree_map()
58 alloc::collections::btree_map::ExtractIf< in test_btree_map()
69 let _v = None::<alloc::collections::btree_map::Entry<'_, &u32, &u32>>; in test_btree_map()
74 let _v = None::<alloc::collections::btree_map::IntoIter<&u32, &u32>>; in test_btree_map()
79 let _v = None::<alloc::collections::btree_map::IntoKeys<&u32, &u32>>; in test_btree_map()
84 let _v = None::<alloc::collections::btree_map::IntoValues<&u32, &u32>>; in test_btree_map()
[all …]
/third_party/rust/rust/src/tools/miri/tests/fail/
Dmemleak.stderr1 error: memory leaked: ALLOC (Rust heap, size: 4, align: 4), allocated here:
2 --> RUSTLIB/alloc/src/alloc.rs:LL:CC
7 = note: inside `std::alloc::alloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
8 = note: inside `std::alloc::Global::alloc_impl` at RUSTLIB/alloc/src/alloc.rs:LL:CC
9 …= note: inside `<std::alloc::Global as std::alloc::Allocator>::allocate` at RUSTLIB/alloc/src/allo…
10 = note: inside `alloc::alloc::exchange_malloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
11 = note: inside `std::boxed::Box::<i32>::new` at RUSTLIB/alloc/src/boxed.rs:LL:CC
Dmemleak_rc.64bit.stderr1 error: memory leaked: ALLOC (Rust heap, size: 32, align: 8), allocated here:
2 --> RUSTLIB/alloc/src/alloc.rs:LL:CC
7 = note: inside `std::alloc::alloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
8 = note: inside `std::alloc::Global::alloc_impl` at RUSTLIB/alloc/src/alloc.rs:LL:CC
9 …= note: inside `<std::alloc::Global as std::alloc::Allocator>::allocate` at RUSTLIB/alloc/src/allo…
10 = note: inside `alloc::alloc::exchange_malloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
11 …c::RcBox<std::cell::RefCell<std::option::Option<Dummy>>>>::new` at RUSTLIB/alloc/src/boxed.rs:LL:CC
12 …td::rc::Rc::<std::cell::RefCell<std::option::Option<Dummy>>>::new` at RUSTLIB/alloc/src/rc.rs:LL:CC
Dmemleak_rc.32bit.stderr1 error: memory leaked: ALLOC (Rust heap, size: 16, align: 4), allocated here:
2 --> RUSTLIB/alloc/src/alloc.rs:LL:CC
7 = note: inside `std::alloc::alloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
8 = note: inside `std::alloc::Global::alloc_impl` at RUSTLIB/alloc/src/alloc.rs:LL:CC
9 …= note: inside `<std::alloc::Global as std::alloc::Allocator>::allocate` at RUSTLIB/alloc/src/allo…
10 = note: inside `alloc::alloc::exchange_malloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
11 …c::RcBox<std::cell::RefCell<std::option::Option<Dummy>>>>::new` at RUSTLIB/alloc/src/boxed.rs:LL:CC
12 …td::rc::Rc::<std::cell::RefCell<std::option::Option<Dummy>>>::new` at RUSTLIB/alloc/src/rc.rs:LL:CC
/third_party/mesa3d/src/vulkan/util/
Dvk_alloc.h44 vk_alloc(const VkAllocationCallbacks *alloc, in vk_alloc() argument
48 return alloc->pfnAllocation(alloc->pUserData, size, align, scope); in vk_alloc()
52 vk_zalloc(const VkAllocationCallbacks *alloc, in vk_zalloc() argument
56 void *mem = vk_alloc(alloc, size, align, scope); in vk_zalloc()
66 vk_realloc(const VkAllocationCallbacks *alloc, in vk_realloc() argument
70 return alloc->pfnReallocation(alloc->pUserData, ptr, size, align, scope); in vk_realloc()
74 vk_free(const VkAllocationCallbacks *alloc, void *data) in vk_free() argument
79 alloc->pfnFree(alloc->pUserData, data); in vk_free()
83 vk_strdup(const VkAllocationCallbacks *alloc, const char *s, in vk_strdup() argument
90 char *copy = (char *)vk_alloc(alloc, size, 1, scope); in vk_strdup()
[all …]
/third_party/protobuf/third_party/abseil-cpp/absl/container/internal/
Dcommon_policy_traits.h50 template <class Alloc, class... Args>
51 static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
52 Policy::construct(alloc, slot, std::forward<Args>(args)...);
58 template <class Alloc>
59 static auto destroy(Alloc* alloc, slot_type* slot) {
60 return Policy::destroy(alloc, slot);
74 template <class Alloc>
75 static void transfer(Alloc* alloc, slot_type* new_slot, slot_type* old_slot) {
76 transfer_impl(alloc, new_slot, old_slot, Rank2{});
100 template <class Alloc>
[all …]
Dnode_slot_policy.h22 // template <class Alloc, class... Args>
23 // value_type* new_element(Alloc* alloc, Args&&... args) const;
26 // template <class Alloc>
27 // void delete_element(Alloc* alloc, value_type* node) const;
55 template <class Alloc, class... Args>
56 static void construct(Alloc* alloc, slot_type* slot, Args&&... args) { in construct()
57 *slot = Policy::new_element(alloc, std::forward<Args>(args)...); in construct()
60 template <class Alloc>
61 static void destroy(Alloc* alloc, slot_type* slot) { in destroy()
62 Policy::delete_element(alloc, *slot); in destroy()
[all …]
Dunordered_map_constructor_test.h78 A alloc(0); in TYPED_TEST_P()
79 TypeParam m(123, hasher, equal, alloc); in TYPED_TEST_P()
82 EXPECT_EQ(m.get_allocator(), alloc); in TYPED_TEST_P()
111 A alloc(0);
112 TypeParam m(123, alloc);
113 EXPECT_EQ(m.get_allocator(), alloc);
131 A alloc(0);
132 TypeParam m(123, hasher, alloc);
134 EXPECT_EQ(m.get_allocator(), alloc);
161 A alloc(0);
[all …]
Dunordered_set_constructor_test.h79 A alloc(0); in TYPED_TEST_P()
80 TypeParam m(123, hasher, equal, alloc); in TYPED_TEST_P()
83 EXPECT_EQ(m.get_allocator(), alloc); in TYPED_TEST_P()
91 EXPECT_EQ(cm.get_allocator(), alloc); in TYPED_TEST_P()
120 A alloc(0);
121 TypeParam m(123, alloc);
122 EXPECT_EQ(m.get_allocator(), alloc);
140 A alloc(0);
141 TypeParam m(123, hasher, alloc);
143 EXPECT_EQ(m.get_allocator(), alloc);
[all …]
/third_party/rust/rust/tests/ui/imports/
Dresolve_self_super_hint.rs2 extern crate alloc;
3 use alloc::HashMap;
4 //~^ ERROR unresolved import `alloc` [E0432]
6 //~| SUGGESTION self::alloc
8 use alloc::HashMap;
9 //~^ ERROR unresolved import `alloc` [E0432]
11 //~| SUGGESTION super::alloc
13 use alloc::HashMap;
14 //~^ ERROR unresolved import `alloc` [E0432]
16 //~| SUGGESTION a::alloc
[all …]
Dresolve_self_super_hint.stderr1 error[E0432]: unresolved import `alloc`
4 LL | use alloc::HashMap;
5 | ^^^^^ help: a similar path exists: `self::alloc`
7 error[E0432]: unresolved import `alloc`
10 LL | use alloc::HashMap;
11 | ^^^^^ help: a similar path exists: `super::alloc`
13 error[E0432]: unresolved import `alloc`
16 LL | use alloc::HashMap;
20 | help: a similar path exists: `a::alloc`
22 error[E0432]: unresolved import `alloc`
[all …]
/third_party/grpc/src/objective-c/tests/UnitTests/
DAPIv2Tests.m66 kInexistentMethod = [[GRPCProtoMethod alloc] initWithPackage:kPackage
69 kEmptyCallMethod = [[GRPCProtoMethod alloc] initWithPackage:kPackage
72 kUnaryCallMethod = [[GRPCProtoMethod alloc] initWithPackage:kPackage
75 kOutputStreamingCallMethod = [[GRPCProtoMethod alloc] initWithPackage:kPackage
78 kFullDuplexCallMethod = [[GRPCProtoMethod alloc] initWithPackage:kPackage
89 [[GRPCRequestOptions alloc] initWithHost:GRPCGetLocalInteropTestServerAddressPlainText()
94 GRPCMutableCallOptions *options = [[GRPCMutableCallOptions alloc] init];
98 GRPCCall2 *call = [[GRPCCall2 alloc]
101 [[GRPCBlockCallbackResponseHandler alloc]
165 [[GRPCRequestOptions alloc] initWithHost:GRPCGetLocalInteropTestServerAddressPlainText()
[all …]
/third_party/skia/m133/modules/skottie/utils/
DTextPreshape.cpp62 Value pathToLottie(const SkPath& path, SkArenaAlloc& alloc) { in pathToLottie() argument
124 auto ptsToLottie = [](const std::vector<SkPoint> v, SkArenaAlloc& alloc) { in pathToLottie() argument
128 vec[i] = ArrayValue(fields, std::size(fields), alloc); in pathToLottie()
131 return ArrayValue(vec.data(), vec.size(), alloc); in pathToLottie()
137 { StringValue("v", alloc), ptsToLottie(contours[i].verts, alloc) }, in pathToLottie()
138 { StringValue("i", alloc), ptsToLottie(contours[i].in_tan, alloc) }, in pathToLottie()
139 { StringValue("o", alloc), ptsToLottie(contours[i].out_tan, alloc) }, in pathToLottie()
140 { StringValue("c", alloc), BoolValue (contours[i].closed) }, in pathToLottie()
144 { StringValue("a", alloc), NumberValue(0) }, in pathToLottie()
145 { StringValue("k", alloc), ObjectValue(fields_k, std::size(fields_k), alloc) }, in pathToLottie()
[all …]
/third_party/rust/rust/tests/run-make/no-alloc-shim/
Dfoo.rs5 extern crate alloc;
7 use alloc::alloc::{GlobalAlloc, Layout};
20 static ALLOC: Alloc = Alloc; variable
22 struct Alloc; struct
24 unsafe impl GlobalAlloc for Alloc { implementation
25 unsafe fn alloc(&self, _: Layout) -> *mut u8 { in alloc() method
40 assert_eq!(alloc::alloc::alloc(Layout::new::<()>()), core::ptr::null_mut()); in main()
/third_party/protobuf/objectivec/Tests/
DGPBUnknownFieldSetTest.m44 GPBUnknownFieldSet* set = [[[GPBUnknownFieldSet alloc] init] autorelease];
45 GPBUnknownField* field = [[[GPBUnknownField alloc] initWithNumber:0] autorelease];
52 GPBUnknownFieldSet* set1 = [[[GPBUnknownFieldSet alloc] init] autorelease];
55 GPBUnknownFieldSet* set2 = [[[GPBUnknownFieldSet alloc] init] autorelease];
61 GPBUnknownField* field1 = [[[GPBUnknownField alloc] initWithNumber:1] autorelease];
65 GPBUnknownField* field2 = [[[GPBUnknownField alloc] initWithNumber:1] autorelease];
73 field1 = [[[GPBUnknownField alloc] initWithNumber:2] autorelease];
77 field2 = [[[GPBUnknownField alloc] initWithNumber:2] autorelease];
85 field1 = [[[GPBUnknownField alloc] initWithNumber:3] autorelease];
89 field2 = [[[GPBUnknownField alloc] initWithNumber:3] autorelease];
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Dnode_hash_policy.h22 // template <class Alloc, class... Args>
23 // value_type* new_element(Alloc* alloc, Args&&... args) const;
26 // template <class Alloc>
27 // void delete_element(Alloc* alloc, value_type* node) const;
55 template <class Alloc, class... Args>
56 static void construct(Alloc* alloc, slot_type* slot, Args&&... args) { in construct()
57 *slot = Policy::new_element(alloc, std::forward<Args>(args)...); in construct()
60 template <class Alloc>
61 static void destroy(Alloc* alloc, slot_type* slot) { in destroy()
62 Policy::delete_element(alloc, *slot); in destroy()
[all …]
Dunordered_map_constructor_test.h78 A alloc(0); in TYPED_TEST_P()
79 TypeParam m(123, hasher, equal, alloc); in TYPED_TEST_P()
82 EXPECT_EQ(m.get_allocator(), alloc); in TYPED_TEST_P()
111 A alloc(0);
112 TypeParam m(123, alloc);
113 EXPECT_EQ(m.get_allocator(), alloc);
131 A alloc(0);
132 TypeParam m(123, hasher, alloc);
134 EXPECT_EQ(m.get_allocator(), alloc);
161 A alloc(0);
[all …]
Dunordered_set_constructor_test.h79 A alloc(0); in TYPED_TEST_P()
80 TypeParam m(123, hasher, equal, alloc); in TYPED_TEST_P()
83 EXPECT_EQ(m.get_allocator(), alloc); in TYPED_TEST_P()
91 EXPECT_EQ(cm.get_allocator(), alloc); in TYPED_TEST_P()
120 A alloc(0);
121 TypeParam m(123, alloc);
122 EXPECT_EQ(m.get_allocator(), alloc);
140 A alloc(0);
141 TypeParam m(123, hasher, alloc);
143 EXPECT_EQ(m.get_allocator(), alloc);
[all …]
/third_party/rust/crates/nom/
DCargo.toml32 alloc = []
33 std = ["alloc", "memchr/std", "minimal-lexical/std"]
50 features = ["alloc", "std", "docsrs"]
63 required-features = ["alloc"]
76 required-features = ["alloc"]
80 required-features = ["alloc"]
84 required-features = ["alloc"]
91 required-features = ["alloc"]
95 required-features = ["alloc"]
105 required-features = ["alloc"]
[all …]
/third_party/rust/rust/library/alloc/src/vec/
Dspec_from_elem.rs3 use crate::alloc::Allocator;
10 fn from_elem<A: Allocator>(elem: Self, n: usize, alloc: A) -> Vec<Self, A>; in from_elem()
14 default fn from_elem<A: Allocator>(elem: Self, n: usize, alloc: A) -> Vec<Self, A> { in from_elem()
15 let mut v = Vec::with_capacity_in(n, alloc); in from_elem()
23 default fn from_elem<A: Allocator>(elem: T, n: usize, alloc: A) -> Vec<T, A> { in from_elem()
25 return Vec { buf: RawVec::with_capacity_zeroed_in(n, alloc), len: n }; in from_elem()
27 let mut v = Vec::with_capacity_in(n, alloc); in from_elem()
35 fn from_elem<A: Allocator>(elem: i8, n: usize, alloc: A) -> Vec<i8, A> { in from_elem()
37 return Vec { buf: RawVec::with_capacity_zeroed_in(n, alloc), len: n }; in from_elem()
40 let mut v = Vec::with_capacity_in(n, alloc); in from_elem()
[all …]
/third_party/rust/rust/library/alloc/src/collections/btree/
Dfix.rs3 use core::alloc::Allocator;
12 alloc: A, in fix_node_through_parent()
21 let parent = left_parent_kv.merge_tracking_parent(alloc); in fix_node_through_parent()
30 let parent = right_parent_kv.merge_tracking_parent(alloc); in fix_node_through_parent()
57 pub fn fix_node_and_affected_ancestors<A: Allocator + Clone>(mut self, alloc: A) -> bool { in fix_node_and_affected_ancestors()
59 match self.fix_node_through_parent(alloc.clone()) { in fix_node_and_affected_ancestors()
70 pub fn fix_top<A: Allocator + Clone>(&mut self, alloc: A) { in fix_top()
72 self.pop_internal_level(alloc.clone()); in fix_top()
79 pub fn fix_right_border<A: Allocator + Clone>(&mut self, alloc: A) { in fix_right_border()
80 self.fix_top(alloc.clone()); in fix_right_border()
[all …]

12345678910>>...154