/libcore/luni/src/main/java/libcore/util/ |
NativeAllocationRegistry.java | 134 * {@link #registerNativeAllocation(Object, Allocator) registerNativeAllocation(Object, Allocator)}. 136 public interface Allocator { 150 * If the allocator returns null, the allocation is not registered and a 154 * @param allocator used to perform the underlying native allocation. 159 * case, the allocator will not be run. 161 public Runnable registerNativeAllocation(Object referent, Allocator allocator) { 167 // Create the cleaner before running the allocator so that 172 long nativePtr = allocator.allocate() [all...] |
/prebuilts/go/darwin-x86/src/cmd/compile/internal/ssa/ |
id.go | 9 // idAlloc provides an allocator for unique integers.
|
/prebuilts/go/linux-x86/src/cmd/compile/internal/ssa/ |
id.go | 9 // idAlloc provides an allocator for unique integers.
|
/prebuilts/misc/common/swig/include/2.0.11/std/ |
std_multiset.i | 44 class _Alloc = allocator<_Key> >
|
std_sstream.i | 31 typename _Alloc = allocator<_CharT> > 65 typename _Alloc = allocator<_CharT> > 104 typename _Alloc = allocator<_CharT> > 145 typename _Alloc = allocator<_CharT> >
|
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
alloc_convert_copy.pass.cpp | 82 std::tuple<Explicit> t2{std::allocator_arg, std::allocator<void>{}, t1}; 87 std::tuple<Implicit> t2 = {std::allocator_arg, std::allocator<void>{}, t1};
|
/system/core/libmemunreachable/ |
ThreadCapture.cpp | 39 #include "Allocator.h" 74 ThreadCaptureImpl(pid_t pid, Allocator<ThreadCaptureImpl>& allocator); 89 allocator::map<pid_t, unsigned int> captured_threads_; 90 Allocator<ThreadCaptureImpl> allocator_; 95 ThreadCaptureImpl::ThreadCaptureImpl(pid_t pid, Allocator<ThreadCaptureImpl>& allocator) : 96 captured_threads_(allocator), allocator_(allocator), pid_(pid) { 331 ThreadInfo t{0, allocator::vector<uintptr_t>(allocator_), std::pair<uintptr_t, uintptr_t>(0, 0)} [all...] |
/system/core/libmemunreachable/tests/ |
ThreadCapture_test.cpp | 31 #include "Allocator.h" 131 auto expected_tids = allocator::vector<pid_t>(1, getpid(), heap); 132 auto list_tids = allocator::vector<pid_t>(heap); 150 auto list_tids = allocator::vector<pid_t>(heap); 230 auto list_tids = allocator::vector<pid_t>(heap); 237 auto thread_info = allocator::vector<ThreadInfo>(heap); 269 auto list_tids = allocator::vector<pid_t>(heap); 327 auto list_tids = allocator::vector<pid_t>(heap); 334 auto thread_info = allocator::vector<ThreadInfo>(heap);
|
/art/compiler/optimizing/ |
ssa_liveness_analysis.h | 33 BlockInfo(ArenaAllocator* allocator, const HBasicBlock& block, size_t number_of_ssa_values) 35 live_in_(allocator, number_of_ssa_values, false, kArenaAllocSsaLiveness), 36 live_out_(allocator, number_of_ssa_values, false, kArenaAllocSsaLiveness), 37 kill_(allocator, number_of_ssa_values, false, kArenaAllocSsaLiveness) { 83 LiveRange* Dup(ArenaAllocator* allocator) const { 84 return new (allocator) LiveRange( 85 start_, end_, next_ == nullptr ? nullptr : next_->Dup(allocator)); 141 UsePosition* Dup(ArenaAllocator* allocator) const { 142 return new (allocator) UsePosition( 144 next_ == nullptr ? nullptr : next_->Dup(allocator)); [all...] |
codegen_test_utils.h | 226 static void Run(const InternalCodeAllocator& allocator, 233 CommonCompilerTest::MakeExecutable(allocator.GetMemory(), allocator.GetSize()); 234 fptr f = reinterpret_cast<fptr>(allocator.GetMemory()); 264 InternalCodeAllocator allocator; local 265 codegen->Compile(&allocator); 266 Run(allocator, *codegen, has_result, expected);
|
/bionic/linker/ |
linker_allocator.cpp | 43 // LinkerMemeoryAllocator is general purpose allocator 48 // If size is >= 1k allocator proxies malloc call directly to mmap 49 // If size < 1k allocator uses SmallObjectAllocator for the size 54 // For a pointer allocated using proxy-to-mmap allocator unmaps 309 LinkerSmallObjectAllocator* allocator = get_small_object_allocator(info->type); local 310 if (allocator != info->allocator_addr) { 314 old_size = allocator->get_block_size(); 337 LinkerSmallObjectAllocator* allocator = get_small_object_allocator(info->type); local 338 if (allocator != info->allocator_addr) { 339 __libc_fatal("invalid pointer %p (invalid allocator address for the page)", ptr) [all...] |
/external/clang/test/CodeGenCXX/ |
debug-info-use-after-free.cpp | 99 template < typename _Tp > struct allocator:new_allocator < _Tp > { struct in inherits:new_allocator 113 allocator < _Tp > >struct vector:_Vector_base < _Tp, _Alloc > { }; 139 template < typename _Tp > class allocator:__gnu_cxx::new_allocator < _Tp > { class in namespace:std 143 template < typename _Tp, typename _Alloc = std::allocator < _Tp > >class vector:_Vector_base < _Tp, 200 std::allocator; 205 allocator < _Tp > >class hash_map {
|
/external/compiler-rt/lib/asan/ |
asan_allocator.cc | 12 // Implementation of ASan's memory allocator, 2-nd version. 13 // This variant uses the allocator from sanitizer_common, i.e. the one shared 52 // The memory chunk allocated from the underlying allocator looks like this: 99 // Every chunk of memory allocated by this allocator can be in one of 3 states: 148 // Clear the magic value, as allocator internals may overwrite the 224 struct Allocator { 230 AsanAllocator allocator; member in struct:__asan::Allocator 242 explicit Allocator(LinkerInitialized) 265 allocator.Init(options.may_return_null); 270 allocator.SetMayReturnNull(options.may_return_null) [all...] |
/external/dng_sdk/source/ |
dng_opcodes.cpp | 308 dng_memory_allocator *allocator, 314 allocator, 323 *allocator); 448 dng_memory_allocator *allocator, 458 fBuffer [threadIndex] . Reset (allocator->Allocate (bufferSize)); 468 *allocator);
|
/external/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.types/ |
allocator_pointers.pass.cpp | 115 test_pointer<std::scoped_allocator_adaptor<std::allocator<char>>> (); 116 test_pointer<std::scoped_allocator_adaptor<std::allocator<int>>> (); 117 test_pointer<std::scoped_allocator_adaptor<std::allocator<Foo>>> (); 119 test_void_pointer<std::scoped_allocator_adaptor<std::allocator<char>>> (); 120 test_void_pointer<std::scoped_allocator_adaptor<std::allocator<int>>> (); 121 test_void_pointer<std::scoped_allocator_adaptor<std::allocator<Foo>>> ();
|
/external/libcxx/test/std/utilities/memory/default.allocator/ |
allocator_pointers.pass.cpp | 114 test_pointer<std::allocator<char>> (); 115 test_pointer<std::allocator<int>> (); 116 test_pointer<std::allocator<Foo>> (); 118 test_void_pointer<std::allocator<char>> (); 119 test_void_pointer<std::allocator<int>> (); 120 test_void_pointer<std::allocator<Foo>> ();
|
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/allocator.adaptor/allocator.adaptor.types/ |
allocator_pointers.pass.cpp | 106 test_pointer<std::scoped_allocator_adaptor<std::allocator<char>>> (); 107 test_pointer<std::scoped_allocator_adaptor<std::allocator<int>>> (); 108 test_pointer<std::scoped_allocator_adaptor<std::allocator<Foo>>> (); 110 test_void_pointer<std::scoped_allocator_adaptor<std::allocator<char>>> (); 111 test_void_pointer<std::scoped_allocator_adaptor<std::allocator<int>>> (); 112 test_void_pointer<std::scoped_allocator_adaptor<std::allocator<Foo>>> ();
|
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/default.allocator/ |
allocator_pointers.pass.cpp | 106 test_pointer<std::allocator<char>> (); 107 test_pointer<std::allocator<int>> (); 108 test_pointer<std::allocator<Foo>> (); 110 test_void_pointer<std::allocator<char>> (); 111 test_void_pointer<std::allocator<int>> (); 112 test_void_pointer<std::allocator<Foo>> ();
|
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/utilities/allocator.adaptor/allocator.adaptor.types/ |
allocator_pointers.pass.cpp | 113 test_pointer<std::scoped_allocator_adaptor<std::allocator<char>>> (); 114 test_pointer<std::scoped_allocator_adaptor<std::allocator<int>>> (); 115 test_pointer<std::scoped_allocator_adaptor<std::allocator<Foo>>> (); 117 test_void_pointer<std::scoped_allocator_adaptor<std::allocator<char>>> (); 118 test_void_pointer<std::scoped_allocator_adaptor<std::allocator<int>>> (); 119 test_void_pointer<std::scoped_allocator_adaptor<std::allocator<Foo>>> ();
|
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/utilities/memory/default.allocator/ |
allocator_pointers.pass.cpp | 112 test_pointer<std::allocator<char>> (); 113 test_pointer<std::allocator<int>> (); 114 test_pointer<std::allocator<Foo>> (); 116 test_void_pointer<std::allocator<char>> (); 117 test_void_pointer<std::allocator<int>> (); 118 test_void_pointer<std::allocator<Foo>> ();
|
/external/webrtc/webrtc/p2p/client/ |
basicportallocator.cc | 143 BasicPortAllocator *allocator, 149 ice_ufrag, ice_pwd, allocator->flags()), 150 allocator_(allocator), network_thread_(NULL), 151 socket_factory_(allocator->socket_factory()), 469 LOG_J(LS_INFO, port) << "Added port to allocator"; 661 LOG_J(LS_INFO, port) << "Removed port from allocator (" 730 rtc::SocketAddress(ip_, 0), session_->allocator()->min_port(), 731 session_->allocator()->max_port())); 845 session_->allocator()->step_delay(), 886 session_->allocator()->origin(), emit_local_candidate_for_anyaddress) [all...] |
/frameworks/native/vulkan/libvulkan/ |
driver.cpp | 88 const VkAllocationCallbacks& allocator); 91 const VkAllocationCallbacks& allocator); 288 const VkAllocationCallbacks& allocator) 290 allocator_(allocator), 300 const VkAllocationCallbacks& allocator) 302 allocator_(allocator), 586 InstanceData* AllocateInstanceData(const VkAllocationCallbacks& allocator) { 587 void* data_mem = allocator.pfnAllocation( 588 allocator.pUserData, sizeof(InstanceData), alignof(InstanceData), 593 return new (data_mem) InstanceData(allocator); [all...] |
/external/deqp/external/vulkancts/modules/vulkan/draw/ |
vktDrawImageObjectUtil.cpp | 165 vk::Allocator& allocator, 178 read(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, vk::VK_IMAGE_TYPE_2D, 183 readUsingBuffer(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, m_pixelAccessData.data()); 189 vk::Allocator& allocator, 203 read(queue, allocator, layout, offset, width, height, depth, mipLevel, arrayElement, aspect, vk::VK_IMAGE_TYPE_3D, 208 readUsingBuffer(queue, allocator, layout, offset, width, height, depth, mipLevel, arrayElement, aspect, m_pixelAccessData.data()); 214 vk::Allocator& allocator, [all...] |
/external/deqp/modules/glshared/ |
glsMemoryStressCase.cpp | 861 MemObjectAllocator allocator(log, m_renderCtx, m_objectTypes, m_config, deStringHash(getName())); 863 if (!allocator.allocUntilFailure()) 866 allocator.clearObjects(); 868 log << TestLog::Message << "Timeout. Couldn't exhaust memory in timelimit. Allocated " << allocator.getObjectCount() << " objects." << TestLog::EndMessage; 878 allocator.clearObjects(); 880 m_allocated.push_back(allocator.getObjectCount()); 882 if (m_iteration != 0 && allocator.getObjectCount() == 0) 885 log << TestLog::Message << "Got error when allocation object count: " << allocator.getObjectCount() << " bytes: " << allocator.getBytes() << TestLog::EndMessage; 887 if ((allocator.getGLError() == 0) && (allocator.getResult() == MemObjectAllocator::RESULT_GOT_BAD_ALLOC) [all...] |
/external/skia/src/core/ |
SkSpriteBlitter_ARGB32.cpp | 257 SkArenaAlloc* allocator) { 258 SkASSERT(allocator != nullptr); 275 blitter = allocator->make<Sprite_D32_S4444_XferFilter>(source, paint); 277 blitter = allocator->make<Sprite_D32_S4444_Opaque>(source); 279 blitter = allocator->make<Sprite_D32_S4444>(source); 286 blitter = allocator->make<Sprite_D32_S32A_XferFilter>(source, paint); 290 blitter = allocator->make<Sprite_D32_S32>(source, alpha);
|