/third_party/python/Python/ |
H A D | getargs.c | 222 addcleanup(void *ptr, freelist_t *freelist, destr_t destructor) in addcleanup() argument 226 index = freelist->first_available; in addcleanup() 227 freelist->first_available += 1; in addcleanup() 229 freelist->entries[index].item = ptr; in addcleanup() 230 freelist->entries[index].destructor = destructor; in addcleanup() 236 cleanreturn(int retval, freelist_t *freelist) in cleanreturn() argument 244 for (index = 0; index < freelist->first_available; ++index) { in cleanreturn() 245 freelist->entries[index].destructor(NULL, in cleanreturn() 246 freelist->entries[index].item); in cleanreturn() 249 if (freelist in cleanreturn() 272 freelist_t freelist; vgetargs1_impl() local 501 converttuple(PyObject *arg, const char **p_format, va_list *p_va, int flags, int *levels, char *msgbuf, size_t bufsize, int toplevel, freelist_t *freelist) converttuple() argument 587 convertitem(PyObject *arg, const char **p_format, va_list *p_va, int flags, int *levels, char *msgbuf, size_t bufsize, freelist_t *freelist) convertitem() argument 656 convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags, char *msgbuf, size_t bufsize, freelist_t *freelist) convertsimple() argument 1632 freelist_t freelist; vgetargskeywords() local 2073 freelist_t freelist; vgetargskeywordsfast_impl() local [all...] |
H A D | context.c | 352 ctx = state->freelist; in _context_alloc() 353 state->freelist = (PyContext *)ctx->ctx_weakreflist; in _context_alloc() 484 self->ctx_weakreflist = (PyObject *)state->freelist; in context_tp_dealloc() 485 state->freelist = self; in context_tp_dealloc() 1303 PyContext *ctx = state->freelist; in _PyContext_ClearFreeList() 1304 state->freelist = (PyContext *)ctx->ctx_weakreflist; in _PyContext_ClearFreeList()
|
H A D | dtoa.c | 338 1 << k. These pools are maintained as linked lists, with freelist[k] 355 static Bigint *freelist[Kmax+1]; variable 366 if (k <= Kmax && (rv = freelist[k])) in Balloc() 367 freelist[k] = rv->next; in Balloc() 397 v->next = freelist[v->k]; in Bfree() 398 freelist[v->k] = v; in Bfree()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/ |
H A D | low_level_alloc.cc | 92 // Next two fields: in unallocated blocks: freelist skiplist data 105 // A trivial skiplist implementation. This is used to keep the freelist 188 ABSL_RAW_CHECK(e == found, "element not in freelist"); in LLA_SkiplistDelete() 207 AllocList freelist ABSL_GUARDED_BY(mu); 358 freelist.header.size = 0; in Arena() 359 freelist.header.magic = in Arena() 360 Magic(kMagicUnallocated, &freelist.header); in Arena() 361 freelist.header.arena = this; in Arena() 362 freelist.levels = 0; in Arena() 363 memset(freelist in Arena() [all...] |
/third_party/eudev/src/shared/ |
H A D | mempool.c | 42 if (mp->freelist) { in mempool_alloc_tile() 45 r = mp->freelist; in mempool_alloc_tile() 46 mp->freelist = * (void**) mp->freelist; in mempool_alloc_tile() 87 * (void**) p = mp->freelist; in mempool_free_tile() 88 mp->freelist = p; in mempool_free_tile()
|
H A D | mempool.h | 31 void *freelist; member
|
/third_party/node/deps/openssl/openssl/crypto/ |
H A D | mem_sec.c | 283 * of "sh.minsize" units. The freelist and bitmaps are kept separately, 299 ((char*)(p) >= (char*)sh.freelist && (char*)(p) < (char*)&sh.freelist[sh.freelist_size]) 314 char **freelist; member 463 sh.freelist = OPENSSL_zalloc(sh.freelist_size * sizeof(char *)); in sh_init() 464 OPENSSL_assert(sh.freelist != NULL); in sh_init() 465 if (sh.freelist == NULL) in sh_init() 526 sh_add_to_list(&sh.freelist[0], sh.arena); in sh_init() 580 OPENSSL_free(sh.freelist); in sh_done() 629 if (sh.freelist[slis in sh_malloc() [all...] |
/third_party/openssl/crypto/ |
H A D | mem_sec.c | 277 * of "sh.minsize" units. The freelist and bitmaps are kept separately, 293 ((char*)(p) >= (char*)sh.freelist && (char*)(p) < (char*)&sh.freelist[sh.freelist_size]) 308 char **freelist; member 457 sh.freelist = OPENSSL_zalloc(sh.freelist_size * sizeof(char *)); in sh_init() 458 OPENSSL_assert(sh.freelist != NULL); in sh_init() 459 if (sh.freelist == NULL) in sh_init() 520 sh_add_to_list(&sh.freelist[0], sh.arena); in sh_init() 574 OPENSSL_free(sh.freelist); in sh_done() 623 if (sh.freelist[slis in sh_malloc() [all...] |
/third_party/ltp/tools/sparse/sparse-src/ |
H A D | allocate.c | 59 desc->freelist = NULL; in drop_all_allocations() 70 *p = desc->freelist; in free_one_entry() 71 desc->freelist = p; in free_one_entry() 81 * NOTE! The freelist only works with things that are in allocate() 87 if (desc->freelist) { in allocate() 88 void **p = desc->freelist; in allocate() 90 desc->freelist = *p; in allocate()
|
H A D | allocate.h | 17 void *freelist; member
|
/third_party/nghttp2/src/ |
H A D | memchunk_test.cc | 41 CU_ASSERT(nullptr == pool.freelist); in test_pool_recycle() 47 CU_ASSERT(nullptr == pool.freelist); in test_pool_recycle() 53 CU_ASSERT(nullptr == pool.freelist); in test_pool_recycle() 61 CU_ASSERT(nullptr == pool.freelist); in test_pool_recycle() 67 CU_ASSERT(m3 == pool.freelist); in test_pool_recycle() 74 CU_ASSERT(nullptr == pool.freelist); in test_pool_recycle() 79 CU_ASSERT(m1 == pool.freelist); in test_pool_recycle() 191 CU_ASSERT(nullptr != pool.freelist); in test_memchunks_recycle() 193 auto m = pool.freelist; in test_memchunks_recycle() 216 auto m = pool.freelist; in test_memchunks_reset() [all...] |
H A D | memchunk.h | 75 Pool() : pool(nullptr), freelist(nullptr), poolsize(0), freelistsize(0) {} in Pool() 78 if (freelist) { in get() 79 auto m = freelist; in get() 80 freelist = freelist->next; in get() 92 m->next = freelist; in recycle() 93 freelist = m; in recycle() 97 freelist = nullptr; in clear() 109 T *freelist; member
|
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_opt_combine_stores.c | 78 /* Allocator and freelist to reuse structs between functions. */ 80 struct list_head freelist; member 87 if (list_is_empty(&state->freelist)) { in alloc_combined_store() 90 result = list_first_entry(&state->freelist, in alloc_combined_store() 105 list_add(&combo->link, &state->freelist); in free_combined_store() 458 list_inithead(&state.freelist); in nir_opt_combine_stores()
|
/third_party/node/deps/v8/src/heap/cppgc/ |
H A D | free-list.h | 39 FreeList(FreeList&& freelist) V8_NOEXCEPT; 40 FreeList& operator=(FreeList&& freelist) V8_NOEXCEPT; 45 // Adds block to the freelist. The minimal block size is a words. Regular 52 // Append other freelist into this.
|
/third_party/musl/src/regex/ |
H A D | glob.c | 180 static void freelist(struct match *head) in freelist() function 257 freelist(&head); in glob() 275 freelist(&head); in glob() 283 freelist(&head); in glob()
|
/third_party/node/deps/npm/node_modules/builtins/ |
H A D | index.js | 41 freelist: '<6.0.0',
|
/third_party/python/Include/internal/ |
H A D | pycore_context.h | 33 PyContext *freelist; member
|
/third_party/FreeBSD/contrib/gdtoa/ |
H A D | misc.c | 34 static Bigint *freelist[Kmax+1]; variable 60 if (k <= Kmax && (rv = freelist[k]) !=0) { 61 freelist[k] = rv->next; 102 v->next = freelist[v->k]; 103 freelist[v->k] = v;
|
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_clip.h | 67 struct brw_reg freelist; member
|
H A D | brw_clip_tri.c | 100 c->reg.freelist = brw_uw16_reg(BRW_GENERAL_REGISTER_FILE, i, 0); in brw_clip_tri_alloc_regs()
|
/third_party/mesa3d/src/amd/vulkan/ |
H A D | radv_shader.c | 1372 list_del(&hole->freelist); in remove_hole() 1381 list_addtail(&hole->freelist, &device->shader_free_lists[size_class]); in add_hole() 1433 &device->shader_free_lists[size_class], freelist) in radv_alloc_shader_memory() 1442 hole->freelist.next = ptr; in radv_alloc_shader_memory() 1452 alloc->freelist.prev = NULL; in radv_alloc_shader_memory() 1453 alloc->freelist.next = ptr; in radv_alloc_shader_memory() 1499 alloc->freelist.prev = NULL; in radv_alloc_shader_memory() 1500 alloc->freelist.next = ptr; in radv_alloc_shader_memory() 1537 return hole->freelist.prev ? hole : NULL; in get_hole() 2583 if (!block->freelist [all...] |
H A D | radv_shader.h | 480 /* For holes, a list_head for the free-list. For allocations, freelist.prev=NULL and 481 * freelist.next is a pointer associated with the allocation. 483 struct list_head freelist; member
|
/third_party/node/src/ |
H A D | node_file.cc | 550 auto& freelist = binding_data_->file_handle_read_wrap_freelist; in ReadStart() local 551 if (freelist.size() > 0) { in ReadStart() 552 read_wrap = std::move(freelist.back()); in ReadStart() 553 freelist.pop_back(); in ReadStart() 606 // Push the read wrap back to the freelist, or let it be destroyed in ReadStart() 609 auto& freelist = handle->binding_data_->file_handle_read_wrap_freelist; in ReadStart() 610 if (freelist.size() < kWantedFreelistFill) { in ReadStart() 612 freelist.emplace_back(std::move(read_wrap)); in ReadStart()
|
/third_party/libfuse/lib/ |
H A D | fuse.c | 103 struct list_head freelist; member 431 init_list_head(&slab->freelist); in alloc_slab() 440 list_add_tail(n, &slab->freelist); in alloc_slab() 459 node = slab->freelist.next; in alloc_node() 461 if (list_empty(&slab->freelist)) { in alloc_node() 488 if (list_empty(&slab->freelist)) { in free_node_mem() 492 list_add_head(n, &slab->freelist); in free_node_mem()
|
/third_party/protobuf/php/ext/google/protobuf/ |
H A D | php-upb.c | 2362 mem_block *freelist, *freelist_tail; member 2382 /* The block is for arena |a|, but should appear in the freelist of |root|. */ in upb_arena_addblock() 2383 block->next = root->freelist; in upb_arena_addblock() 2386 root->freelist = block; in upb_arena_addblock() 2442 a->freelist = NULL; in arena_initslow() 2471 a->freelist = NULL; in upb_arena_init() 2478 mem_block *block = a->freelist; in arena_dofree() 2537 /* r1 takes over r2's freelist and refcount. */ in upb_arena_fuse() 2541 r2->freelist_tail->next = r1->freelist; in upb_arena_fuse() 2542 r1->freelist in upb_arena_fuse() [all...] |