HomeSort by relevance Sort by last modified time
    Searched full:arena (Results 1 - 25 of 272) sorted by null

1 2 3 4 5 6 7 8 91011

  /external/chromium_org/third_party/tcmalloc/chromium/src/base/
low_level_alloc.cc 71 LowLevelAlloc::Arena *arena; // pointer to parent arena member in struct:low_level_alloc_internal::AllocList::Header
181 // Arena implementation
183 struct LowLevelAlloc::Arena {
184 Arena() : mu(SpinLock::LINKER_INITIALIZED) {} // does nothing; for static init
185 explicit Arena(int) : pagesize(0) {} // set pagesize to zero explicitly
200 // The default arena, which is used when 0 is passed instead of an Arena
202 static struct LowLevelAlloc::Arena default_arena
383 LowLevelAlloc::Arena *arena = a->header.arena; local
420 LowLevelAlloc::Arena *arena = f->header.arena; local
    [all...]
low_level_alloc.h 45 struct Arena; // an arena from which memory may be allocated
48 // that have been newly allocated from the specific arena.
55 static void *AllocWithArena(size_t request, Arena *arena)
61 // Free() since that call to Alloc(). The space is returned to the arena
70 // Create a new arena.
71 // The root metadata for the new arena is allocated in the
87 // as well as generatating an arena that provides async-signal-safe
90 static Arena *NewArena(int32 flags, Arena *meta_data_arena)
    [all...]
  /external/chromium_org/third_party/tcmalloc/vendor/src/base/
low_level_alloc.cc 71 LowLevelAlloc::Arena *arena; // pointer to parent arena member in struct:low_level_alloc_internal::AllocList::Header
181 // Arena implementation
183 struct LowLevelAlloc::Arena {
184 Arena() : mu(SpinLock::LINKER_INITIALIZED) {} // does nothing; for static init
185 explicit Arena(int) : pagesize(0) {} // set pagesize to zero explicitly
200 // The default arena, which is used when 0 is passed instead of an Arena
202 static struct LowLevelAlloc::Arena default_arena
383 LowLevelAlloc::Arena *arena = a->header.arena; local
420 LowLevelAlloc::Arena *arena = f->header.arena; local
    [all...]
low_level_alloc.h 45 struct Arena; // an arena from which memory may be allocated
48 // that have been newly allocated from the specific arena.
55 static void *AllocWithArena(size_t request, Arena *arena)
61 // Free() since that call to Alloc(). The space is returned to the arena
70 // Create a new arena.
71 // The root metadata for the new arena is allocated in the
87 // as well as generatating an arena that provides async-signal-safe
90 static Arena *NewArena(int32 flags, Arena *meta_data_arena)
    [all...]
  /art/compiler/dex/
arena_allocator.cc 45 Arena::Arena(size_t size)
50 map_ = MemMap::MapAnonymous("dalvik-arena", NULL, size, PROT_READ | PROT_WRITE);
59 Arena::~Arena() {
67 void Arena::Reset() {
79 : lock_("Arena pool lock"),
85 auto* arena = free_arenas_; local
87 delete arena;
91 Arena* ArenaPool::AllocArena(size_t size)
147 Arena* arena = arena_head_; local
    [all...]
arena_allocator.h 29 class Arena;
33 class Arena {
36 explicit Arena(size_t size = kDefaultSize);
37 ~Arena();
60 Arena* next_;
63 DISALLOW_COPY_AND_ASSIGN(Arena);
70 Arena* AllocArena(size_t size);
71 void FreeArena(Arena* arena);
75 Arena* free_arenas_ GUARDED_BY(lock_)
    [all...]
backend.h 32 explicit Backend(ArenaAllocator* arena) : arena_(arena) {}
  /external/chromium_org/third_party/leveldatabase/src/util/
arena.h 15 class Arena {
17 Arena();
18 ~Arena();
27 // by the arena (including space allocated but not yet used for user
48 Arena(const Arena&);
49 void operator=(const Arena&);
52 inline char* Arena::Allocate(size_t bytes) {
arena_test.cc 5 #include "util/arena.h"
15 Arena arena; local
20 Arena arena; local
33 // Our arena disallows size 0 allocations.
38 r = arena.AllocateAligned(s);
40 r = arena.Allocate(s);
49 ASSERT_GE(arena.MemoryUsage(), bytes);
51 ASSERT_LE(arena.MemoryUsage(), bytes * 1.10)
    [all...]
arena.cc 5 #include "util/arena.h"
12 Arena::Arena() {
18 Arena::~Arena() {
24 char* Arena::AllocateFallback(size_t bytes) {
42 char* Arena::AllocateAligned(size_t bytes) {
61 char* Arena::AllocateNewBlock(size_t block_bytes) {
  /external/chromium_org/net/third_party/nss/ssl/bodge/
secitem_array.c 28 SECITEM_AllocArray(PLArenaPool *arena, SECItemArray *array, unsigned int len)
33 if (arena != NULL) {
34 mark = PORT_ArenaMark(arena);
38 if (arena != NULL) {
39 result = PORT_ArenaZAlloc(arena, sizeof(SECItemArray));
53 if (arena != NULL) {
54 result->items = PORT_ArenaZNewArray(arena, SECItem, len);
66 PORT_ArenaUnmark(arena, mark);
71 if ( arena != NULL ) {
73 PORT_ArenaRelease(arena, mark)
    [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...]
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...]
  /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...]
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...]
  /external/chromium_org/third_party/WebKit/Source/platform/
PODFreeListArenaTest.cpp 65 int getFreeListSize(const PassRefPtr<PODFreeListArena<TestClass1> > arena) const
67 return arena->getFreeListSizeForTesting();
71 // Make sure the arena can successfully allocate from more than one
76 RefPtr<PODFreeListArena<TestClass1> > arena = PODFreeListArena<TestClass1>::create(allocator); local
79 arena->allocateObject();
83 // Make sure the arena frees all allocated regions during destruction.
88 RefPtr<PODFreeListArena<TestClass1> > arena = PODFreeListArena<TestClass1>::create(allocator); local
90 arena->allocateObject();
96 // Make sure the arena runs constructors of the objects allocated within.
99 RefPtr<PODFreeListArena<TestClass1> > arena = PODFreeListArena<TestClass1>::create() local
113 RefPtr<PODFreeListArena<TestClass1> > arena = PODFreeListArena<TestClass1>::create(); local
142 RefPtr<PODFreeListArena<TestClass1> > arena = PODFreeListArena<TestClass1>::create(); local
156 RefPtr<PODFreeListArena<TestClass2> > arena = PODFreeListArena<TestClass2>::create(); local
    [all...]
PODArenaTest.cpp 63 // Make sure the arena can successfully allocate from more than one
68 RefPtr<PODArena> arena = PODArena::create(allocator); local
71 arena->allocateObject<TestClass1>();
75 // Make sure the arena frees all allocated regions during destruction.
80 RefPtr<PODArena> arena = PODArena::create(allocator); local
82 arena->allocateObject<TestClass1>();
88 // Make sure the arena runs constructors of the objects allocated within.
91 RefPtr<PODArena> arena = PODArena::create(); local
93 TestClass1* tc1 = arena->allocateObject<TestClass1>();
98 TestClass2* tc2 = arena->allocateObject<TestClass2>()
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/multiprocessing/
heap.py 57 class Arena(object):
63 self.name = 'pym-%d-%d' % (os.getpid(), Arena._counter.next())
79 class Arena(object):
120 arena = Arena(length)
121 self._arenas.append(arena)
122 return (arena, 0, length)
130 (arena, start, stop) = block
131 del self._start_to_block[(arena, start)]
132 del self._stop_to_block[(arena, stop)
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/multiprocessing/
heap.py 57 class Arena(object):
63 self.name = 'pym-%d-%d' % (os.getpid(), Arena._counter.next())
79 class Arena(object):
120 arena = Arena(length)
121 self._arenas.append(arena)
122 return (arena, 0, length)
130 (arena, start, stop) = block
131 del self._start_to_block[(arena, start)]
132 del self._stop_to_block[(arena, stop)
    [all...]
  /external/valgrind/main/VEX/unused/
arena.h 2 /* This is a modified version of the file "arena.h" from
28 /* $Id: H:/drh/idioms/book/RCS/arena.doc,v 1.10 1997/02/21 19:45:19 drh Exp $ */
40 extern void *Arena_alloc (T arena, long nbytes,
42 extern void *Arena_calloc(T arena, long count,
44 extern void Arena_free (T arena);
  /external/chromium/crypto/
signature_verifier_nss.cc 45 PLArenaPool* arena = PORT_NewArena(DER_DEFAULT_CHUNKSIZE);
46 if (!arena) {
57 rv = SEC_QuickDERDecodeItem(arena, &sig_alg_id, SECOID_AlgorithmIDTemplate,
61 PORT_FreeArena(arena, PR_TRUE);
74 PORT_FreeArena(arena, PR_TRUE); // Done with sig_alg_id.
  /external/chromium_org/third_party/re2/util/
arena.h 16 // #include "lib/arena-inl.h"
18 // UnsafeArena arena(1000);
19 // Foo* foo = new (AllocateInArena, &arena) Foo;
89 // Operators for allocation on the arena
90 // Syntax: new (AllocateInArena, arena) MyClass;
98 re2::UnsafeArena *arena) {
99 return reinterpret_cast<char*>(arena->GetMemory(size, 1));
  /external/regex-re2/util/
arena.h 16 // #include "lib/arena-inl.h"
18 // UnsafeArena arena(1000);
19 // Foo* foo = new (AllocateInArena, &arena) Foo;
89 // Operators for allocation on the arena
90 // Syntax: new (AllocateInArena, arena) MyClass;
98 re2::UnsafeArena *arena) {
99 return reinterpret_cast<char*>(arena->GetMemory(size, 1));
  /external/chromium_org/third_party/jemalloc/chromium/
jemalloc.c 91 * in the associated arena chunk header maps.
116 * Use only one arena by default. Mozilla does not currently make extensive
169 * MALLOC_BALANCE enables monitoring of arena lock contention and dynamically
170 * re-balances arena load if exponentially averaged contention exceeds a
497 /* Maximum number of dirty pages per arena. */
504 * to the mandatory one chunk per arena.
704 /* Number of times this arena reassigned a thread due to contention. */
800 * Arena data structures.
872 /* Arena chunk header. */
875 /* Arena that owns the chunk. *
876 arena_t *arena; member in struct:arena_chunk_s
4669 arena_t *arena; local
5417 arena_t *arena; local
6513 arena_t *arena = arenas[i]; local
    [all...]
  /external/chromium_org/third_party/jemalloc/vendor/
jemalloc.c 91 * in the associated arena chunk header maps.
109 * Use only one arena by default. Mozilla does not currently make extensive
162 * MALLOC_BALANCE enables monitoring of arena lock contention and dynamically
163 * re-balances arena load if exponentially averaged contention exceeds a
490 /* Maximum number of dirty pages per arena. */
497 * to the mandatory one chunk per arena.
697 /* Number of times this arena reassigned a thread due to contention. */
793 * Arena data structures.
865 /* Arena chunk header. */
868 /* Arena that owns the chunk. *
869 arena_t *arena; member in struct:arena_chunk_s
4658 arena_t *arena; local
5406 arena_t *arena; local
6495 arena_t *arena = arenas[i]; local
    [all...]

Completed in 1038 milliseconds

1 2 3 4 5 6 7 8 91011