/art/runtime/base/ |
arena_allocator_test.cc | 26 size_t NumberOfArenas(ArenaAllocator* arena) { 28 for (Arena* a = arena->arena_head_; a != nullptr; a = a->next_) { 37 ArenaAllocator arena(&pool); 38 ArenaBitVector bv(&arena, 10, true); 52 // Allocate a small array from an arena and release it. 53 ArenaAllocator arena(&pool); 54 small_array = arena.AllocArray<uint32_t>(kSmallArraySize); 58 // Reuse the previous arena and allocate more than previous allocation including red zone. 59 ArenaAllocator arena(&pool) [all...] |
arena_bit_vector.cc | 55 static ArenaBitVectorAllocator* Create(ArenaAlloc* arena, ArenaAllocKind kind) { 56 void* storage = arena->template Alloc<ArenaBitVectorAllocator>(kind); 57 return new (storage) ArenaBitVectorAllocator(arena, kind); 72 ArenaBitVectorAllocator(ArenaAlloc* arena, ArenaAllocKind kind) 73 : ArenaBitVectorAllocatorKind(kind), arena_(arena) { } 80 ArenaBitVector::ArenaBitVector(ArenaAllocator* arena, 86 ArenaBitVectorAllocator<ArenaAllocator>::Create(arena, kind)) { 89 ArenaBitVector::ArenaBitVector(ScopedArenaAllocator* arena, 95 ArenaBitVectorAllocator<ScopedArenaAllocator>::Create(arena, kind)) {
|
arena_object.h | 26 // Parent for arena allocated objects giving appropriate new and delete operators. 30 // Allocate a new ArenaObject of 'size' bytes in the Arena. 35 static void* operator new(size_t size, ScopedArenaAllocator* arena) { 36 return arena->Alloc(size, kAllocKind); 50 // Parent for arena allocated objects that get deleted, gives appropriate new and delete operators. 54 // Allocate a new ArenaObject of 'size' bytes in the Arena. 59 static void* operator new(size_t size, ScopedArenaAllocator* arena) { 60 return arena->Alloc(size, kAllocKind);
|
arena_bit_vector.h | 29 * A BitVector implementation that uses Arena allocation. 34 static ArenaBitVector* Create(Allocator* arena, 38 void* storage = arena->template Alloc<ArenaBitVector>(kind); 39 return new (storage) ArenaBitVector(arena, start_bits, expandable, kind); 42 ArenaBitVector(ArenaAllocator* arena, 46 ArenaBitVector(ScopedArenaAllocator* arena,
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
pyarena.c | 4 /* A simple arena block structure.
31 /* An arena maintains a singly-linked, NULL-terminated list of
32 * all blocks owned by the arena. These are linked via the
43 /* The arena manages two kinds of memory, blocks of raw memory
45 when the arena is freed.
49 /* Pointer to the first block allocated for the arena, never NULL.
50 It is used only to find the first block when the arena is
64 when the arena is freed.
133 PyArena* arena = (PyArena *)malloc(sizeof(PyArena));
local 134 if (!arena)
[all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/ |
pyarena.c | 4 /* A simple arena block structure.
31 /* An arena maintains a singly-linked, NULL-terminated list of
32 * all blocks owned by the arena. These are linked via the
43 /* The arena manages two kinds of memory, blocks of raw memory
45 when the arena is freed.
49 /* Pointer to the first block allocated for the arena, never NULL.
50 It is used only to find the first block when the arena is
64 when the arena is freed.
133 PyArena* arena = (PyArena *)malloc(sizeof(PyArena));
local 134 if (!arena)
[all...] |
/external/jemalloc/src/ |
arena.c | 33 static void arena_chunk_dalloc(tsdn_t *tsdn, arena_t *arena, 35 static void arena_purge_to_limit(tsdn_t *tsdn, arena_t *arena, 37 static void arena_run_dalloc(tsdn_t *tsdn, arena_t *arena, arena_run_t *run, 39 static void arena_dalloc_bin_run(tsdn_t *tsdn, arena_t *arena, 41 static void arena_bin_lower_run(arena_t *arena, arena_run_t *run, 186 arena_avail_insert(arena_t *arena, arena_chunk_t *chunk, size_t pageind, 195 arena_run_heap_insert(&arena->runs_avail[pind], 200 arena_avail_remove(arena_t *arena, arena_chunk_t *chunk, size_t pageind, 209 arena_run_heap_remove(&arena->runs_avail[pind], 214 arena_run_dirty_insert(arena_t *arena, arena_chunk_t *chunk, size_t pageind 1987 arena_chunk_discard(tsd_tsdn(tsd), arena, local 1993 arena_chunk_discard(tsd_tsdn(tsd), arena, arena->spare); local 3220 arena_t *arena; local 3538 arena_t *arena; local [all...] |
huge.c | 43 huge_malloc(tsdn_t *tsdn, arena_t *arena, size_t usize, bool zero) 48 return (huge_palloc(tsdn, arena, usize, chunksize, zero)); 52 huge_palloc(tsdn_t *tsdn, arena_t *arena, size_t usize, size_t alignment, 64 assert(!tsdn_null(tsdn) || arena != NULL); 87 /* On 32 bit systems, using a per arena cache can exhaust 89 * always take place in the first arena. 92 arena = a0get(); 94 arena = arena_choose(tsdn_tsd(tsdn), arena); 98 if (unlikely(arena == NULL) || (ret = arena_chunk_alloc_huge(tsdn 157 arena_t *arena; local 219 arena_t *arena; local 272 arena_t *arena; local 413 arena_t *arena; local 444 arena_t *arena; local 460 arena_t *arena; local 475 arena_t *arena; local [all...] |
chunk.c | 52 static void chunk_record(tsdn_t *tsdn, arena_t *arena, 60 chunk_hooks_get_locked(arena_t *arena) 63 return (arena->chunk_hooks); 67 chunk_hooks_get(tsdn_t *tsdn, arena_t *arena) 71 malloc_mutex_lock(tsdn, &arena->chunks_mtx); 72 chunk_hooks = chunk_hooks_get_locked(arena); 73 malloc_mutex_unlock(tsdn, &arena->chunks_mtx); 79 chunk_hooks_set(tsdn_t *tsdn, arena_t *arena, const chunk_hooks_t *chunk_hooks) 83 malloc_mutex_lock(tsdn, &arena->chunks_mtx); 84 old_chunk_hooks = arena->chunk_hooks 413 arena_t *arena; local 445 arena_t *arena; local [all...] |
tcache.c | 77 tcache_alloc_small_hard(tsdn_t *tsdn, arena_t *arena, tcache_t *tcache, 82 arena_tcache_fill_small(tsdn, arena, tbin, binind, config_prof ? 95 arena_t *arena; local 103 arena = arena_choose(tsd, NULL); 104 assert(arena != NULL); 106 /* Lock the arena bin associated with the first object. */ 112 if (config_prof && bin_arena == arena) { 113 if (arena_prof_accum(tsd_tsdn(tsd), arena, 120 if (config_stats && bin_arena == arena) { 142 * arena bin than the one that is currentl 177 arena_t *arena; local 307 arena_t *arena; local 363 arena_t *arena; local 367 tcache_arena_dissociate(tsd_tsdn(tsd), tcache, arena); local 479 arena_t *arena; local [all...] |
/external/protobuf/src/google/protobuf/ |
arena_unittest.cc | 31 #include <google/protobuf/arena.h> 158 EXPECT_TRUE(Arena::is_arena_constructable<TestAllTypes>::type::value); 159 EXPECT_TRUE(Arena::is_arena_constructable<const TestAllTypes>::type::value); 160 EXPECT_FALSE(Arena::is_arena_constructable<Arena>::type::value); 164 Arena arena; local 165 EXPECT_TRUE(Arena::Create<int32>(&arena) != NULL); 166 EXPECT_TRUE(Arena::Create<int64>(&arena) != NULL) 187 Arena arena; local 201 Arena arena; local 250 Arena arena; local 266 Arena arena; local 404 Arena arena; local 420 Arena arena; local 433 Arena arena; local 441 Arena arena; local 523 Arena arena; local 541 Arena arena; local 556 Arena arena; local 793 Arena arena; local 853 Arena arena; local 867 Arena arena; local 877 Arena arena; local 898 Arena arena; local 969 Arena arena; local 980 Arena arena; local 985 Arena arena; local 990 Arena arena; local 1083 Arena arena; local 1191 Arena arena; local 1246 ::google::protobuf::Arena arena; local 1254 ::google::protobuf::Arena arena; local 1269 ::google::protobuf::Arena arena; local [all...] |
proto3_arena_unittest.cc | 41 #include <google/protobuf/arena.h> 51 // as this test is only expected to cover the basics of arena support. 118 // In this file we only test some basic functionalities of arena support in 119 // proto3 and expect the arena support to be fully tested in proto2 unittests 126 Arena arena; local 127 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); 136 Arena arena; local 166 Arena arena; local 175 Arena arena; local 185 Arena arena; local 194 Arena arena; local [all...] |
metadata.h | 32 // metadata (Unknown-field set, Arena pointer, ...) and allows its 42 #include <google/protobuf/arena.h> 49 // This is the representation for messages that support arena allocation. It 50 // uses a tagged pointer to either store the Arena pointer, if there are no 51 // unknown fields, or a pointer to a block of memory with both the Arena pointer 53 // allows for "zero-overhead" storage of the Arena pointer, relative to the 57 // indicate an arena pointer and bit 0 == 1 to indicate a UFS+Arena-container 62 explicit InternalMetadataWithArena(Arena* arena) 88 GOOGLE_ATTRIBUTE_ALWAYS_INLINE Arena* arena() const { function in class:google::protobuf::internal::InternalMetadataWithArena [all...] |
arena.h | 63 class Arena; // defined below 86 // ArenaOptions provides optional additional parameters to arena construction 94 // individual arena allocation request occurs with a size larger than this 99 // An initial block of memory for the arena to use, or NULL for none. If 100 // provided, the block must live at least as long as the arena itself. The 101 // creator of the Arena retains ownership of the block after the Arena is 115 // from the arena. By default, it contains a ptr to a wrapper function that 121 // Init hook may return a pointer to a cookie to be stored in the arena. 123 // pointer. This allows us to save an external object per arena instance an [all...] |
/art/compiler/utils/ |
jni_macro_assembler.cc | 50 ArenaAllocator* arena, 61 return MacroAsm32UniquePtr(new (arena) arm::ArmVIXLJNIMacroAssembler(arena)); 65 return MacroAsm32UniquePtr(new (arena) mips::MipsAssembler( 66 arena, 73 return MacroAsm32UniquePtr(new (arena) x86::X86JNIMacroAssembler(arena)); 85 ArenaAllocator* arena, 95 return MacroAsm64UniquePtr(new (arena) arm64::Arm64JNIMacroAssembler(arena)); [all...] |
/external/skia/tests/ |
ArenaAllocTest.cpp | 71 SkArenaAlloc arena{nullptr, 0}; 72 REPORTER_ASSERT(r, *arena.make<int>(3) == 3); 73 Foo* foo = arena.make<Foo>(3, 4.0f); 78 arena.makeArrayDefault<int>(10); 79 int* zeroed = arena.makeArray<int>(10); 83 Foo* fooArray = arena.makeArrayDefault<Foo>(10); 88 arena.make<typename std::aligned_storage<10,8>::type>(); 97 SkArenaAlloc arena{block}; 99 REPORTER_ASSERT(r, *arena.make<int>(3) == 3); 100 Foo* foo = arena.make<Foo>(3, 4.0f) [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/ |
pyarena.h | 1 /* An arena-like memory interface for the compiler.
13 /* PyArena_New() and PyArena_Free() create a new arena and free it,
14 respectively. Once an arena has been created, it can be used
16 also be registered with the arena via PyArena_AddPyObject(), and the
17 arena will ensure that the PyObjects stay alive at least until
18 PyArena_Free() is called. When an arena is freed, all the memory it
19 allocated is freed, the arena releases internal references to registered
26 PyArena_New() returns an arena pointer. On error, it
48 * from the arena `ar` become invalid simultaneously.
52 /* This routine isn't a proper arena allocation routine. It takes [all...] |
Python-ast.h | 376 mod_ty _Py_Module(asdl_seq * body, PyArena *arena);
378 mod_ty _Py_Interactive(asdl_seq * body, PyArena *arena);
380 mod_ty _Py_Expression(expr_ty body, PyArena *arena);
382 mod_ty _Py_Suite(asdl_seq * body, PyArena *arena);
386 PyArena *arena);
390 PyArena *arena);
392 stmt_ty _Py_Return(expr_ty value, int lineno, int col_offset, PyArena *arena);
395 *arena);
398 col_offset, PyArena *arena);
401 lineno, int col_offset, PyArena *arena);
[all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/ |
pyarena.h | 1 /* An arena-like memory interface for the compiler.
13 /* PyArena_New() and PyArena_Free() create a new arena and free it,
14 respectively. Once an arena has been created, it can be used
16 also be registered with the arena via PyArena_AddPyObject(), and the
17 arena will ensure that the PyObjects stay alive at least until
18 PyArena_Free() is called. When an arena is freed, all the memory it
19 allocated is freed, the arena releases internal references to registered
26 PyArena_New() returns an arena pointer. On error, it
48 * from the arena `ar` become invalid simultaneously.
52 /* This routine isn't a proper arena allocation routine. It takes [all...] |
/prebuilts/gdb/darwin-x86/include/python2.7/ |
pyarena.h | 1 /* An arena-like memory interface for the compiler. 13 /* PyArena_New() and PyArena_Free() create a new arena and free it, 14 respectively. Once an arena has been created, it can be used 16 also be registered with the arena via PyArena_AddPyObject(), and the 17 arena will ensure that the PyObjects stay alive at least until 18 PyArena_Free() is called. When an arena is freed, all the memory it 19 allocated is freed, the arena releases internal references to registered 26 PyArena_New() returns an arena pointer. On error, it 48 * from the arena `ar` become invalid simultaneously. 52 /* This routine isn't a proper arena allocation routine. It take [all...] |
/prebuilts/gdb/linux-x86/include/python2.7/ |
pyarena.h | 1 /* An arena-like memory interface for the compiler. 13 /* PyArena_New() and PyArena_Free() create a new arena and free it, 14 respectively. Once an arena has been created, it can be used 16 also be registered with the arena via PyArena_AddPyObject(), and the 17 arena will ensure that the PyObjects stay alive at least until 18 PyArena_Free() is called. When an arena is freed, all the memory it 19 allocated is freed, the arena releases internal references to registered 26 PyArena_New() returns an arena pointer. On error, it 48 * from the arena `ar` become invalid simultaneously. 52 /* This routine isn't a proper arena allocation routine. It take [all...] |
/prebuilts/python/darwin-x86/2.7.5/include/python2.7/ |
pyarena.h | 1 /* An arena-like memory interface for the compiler. 13 /* PyArena_New() and PyArena_Free() create a new arena and free it, 14 respectively. Once an arena has been created, it can be used 16 also be registered with the arena via PyArena_AddPyObject(), and the 17 arena will ensure that the PyObjects stay alive at least until 18 PyArena_Free() is called. When an arena is freed, all the memory it 19 allocated is freed, the arena releases internal references to registered 26 PyArena_New() returns an arena pointer. On error, it 48 * from the arena `ar` become invalid simultaneously. 52 /* This routine isn't a proper arena allocation routine. It take [all...] |
/prebuilts/python/linux-x86/2.7.5/include/python2.7/ |
pyarena.h | 1 /* An arena-like memory interface for the compiler. 13 /* PyArena_New() and PyArena_Free() create a new arena and free it, 14 respectively. Once an arena has been created, it can be used 16 also be registered with the arena via PyArena_AddPyObject(), and the 17 arena will ensure that the PyObjects stay alive at least until 18 PyArena_Free() is called. When an arena is freed, all the memory it 19 allocated is freed, the arena releases internal references to registered 26 PyArena_New() returns an arena pointer. On error, it 48 * from the arena `ar` become invalid simultaneously. 52 /* This routine isn't a proper arena allocation routine. It take [all...] |
/prebuilts/tools/darwin-x86_64/protoc/include/google/protobuf/ |
metadata.h | 32 // metadata (Unknown-field set, Arena pointer, ...) and allows its 42 #include <google/protobuf/arena.h> 49 // This is the representation for messages that support arena allocation. It 50 // uses a tagged pointer to either store the Arena pointer, if there are no 51 // unknown fields, or a pointer to a block of memory with both the Arena pointer 53 // allows for "zero-overhead" storage of the Arena pointer, relative to the 57 // indicate an arena pointer and bit 0 == 1 to indicate a UFS+Arena-container 62 explicit InternalMetadataWithArena(Arena* arena) 88 GOOGLE_ATTRIBUTE_ALWAYS_INLINE Arena* arena() const { function in class:google::protobuf::internal::InternalMetadataWithArena [all...] |
arena.h | 63 class Arena; // defined below 86 // ArenaOptions provides optional additional parameters to arena construction 94 // individual arena allocation request occurs with a size larger than this 99 // An initial block of memory for the arena to use, or NULL for none. If 100 // provided, the block must live at least as long as the arena itself. The 101 // creator of the Arena retains ownership of the block after the Arena is 115 // from the arena. By default, it contains a ptr to a wrapper function that 121 // Init hook may return a pointer to a cookie to be stored in the arena. 123 // pointer. This allows us to save an external object per arena instance an [all...] |