/dports/devel/cgit/cgit-1.2.3/git/ |
H A D | mem-pool.c | 36 void mem_pool_init(struct mem_pool **mem_pool, size_t initial_size) in mem_pool_init() argument 40 if (*mem_pool) in mem_pool_init() 50 *mem_pool = pool; in mem_pool_init() 53 void mem_pool_discard(struct mem_pool *mem_pool, int invalidate_memory) in mem_pool_discard() argument 69 free(mem_pool); in mem_pool_discard() 72 void *mem_pool_alloc(struct mem_pool *mem_pool, size_t len) in mem_pool_alloc() argument 82 mem_pool->mp_block->end - mem_pool->mp_block->next_free >= len) in mem_pool_alloc() 87 return mem_pool_alloc_block(mem_pool, len, mem_pool->mp_block); in mem_pool_alloc() 89 p = mem_pool_alloc_block(mem_pool, mem_pool->block_alloc, NULL); in mem_pool_alloc() 105 int mem_pool_contains(struct mem_pool *mem_pool, void *mem) in mem_pool_contains() argument [all …]
|
H A D | mem-pool.h | 11 struct mem_pool { struct 27 void mem_pool_init(struct mem_pool **mem_pool, size_t initial_size); 32 void mem_pool_discard(struct mem_pool *mem_pool, int invalidate_memory); 37 void *mem_pool_alloc(struct mem_pool *pool, size_t len); 42 void *mem_pool_calloc(struct mem_pool *pool, size_t count, size_t size); 49 void mem_pool_combine(struct mem_pool *dst, struct mem_pool *src); 55 int mem_pool_contains(struct mem_pool *mem_pool, void *mem);
|
/dports/devel/p5-Proc-ProcessTable/Proc-ProcessTable-0.634/os/ |
H A D | Cygwin.c | 59 struct obstack mem_pool; in init_static_vars() local 72 obstack_init(&mem_pool); in init_static_vars() 140 obstack_free(&mem_pool, NULL); in init_static_vars() 145 obstack_free(&mem_pool, NULL); in init_static_vars() 212 obstack_1grow(mem_pool, '\0'); in proc_pid_file() 243 obstack_free(mem_pool, file); in read_file() 255 obstack_free(mem_pool, obstack_finish(mem_pool)); in read_file() 717 struct obstack mem_pool; in OS_get_table() local 727 obstack_init(&mem_pool); in OS_get_table() 777 &mem_pool); in OS_get_table() [all …]
|
H A D | Linux.c | 59 struct obstack mem_pool; in init_static_vars() local 72 obstack_init(&mem_pool); in init_static_vars() 137 obstack_free(&mem_pool, NULL); in init_static_vars() 142 obstack_free(&mem_pool, NULL); in init_static_vars() 209 obstack_1grow(mem_pool, '\0'); in proc_pid_file() 240 obstack_free(mem_pool, file); in read_file() 252 obstack_free(mem_pool, obstack_finish(mem_pool)); in read_file() 727 struct obstack mem_pool; in OS_get_table() local 737 obstack_init(&mem_pool); in OS_get_table() 787 &mem_pool); in OS_get_table() [all …]
|
/dports/misc/tlci/tlci-4a3dd51a872f36a513f06efa475922259dee91f1/src/ |
H A D | heap.c | 48 heap->mem_pool = calloc(1, HEAP_POOL_CAPACITY); in heap_create() 49 if (!heap->mem_pool) { in heap_create() 66 if (heap->mem_pool[rcell].type == NIL) in heap_garbage_sweep() 69 if (!heap->mem_pool[rcell].is_alive) { in heap_garbage_sweep() 73 if (heap->mem_pool[rcell].type == IDENT) { in heap_garbage_sweep() 86 heap->mem_pool[rcell].type = NIL; in heap_garbage_sweep() 100 if (heap->mem_pool) in heap_destroy() 101 free(heap->mem_pool); in heap_destroy() 254 if (!heap->mem_pool[i].is_alive) { in pool_alloc() 257 return &heap->mem_pool[i]; in pool_alloc() [all …]
|
/dports/devel/git-p4/git-2.34.1/ |
H A D | mem-pool.h | 11 struct mem_pool { struct 27 void mem_pool_init(struct mem_pool *pool, size_t initial_size); 32 void mem_pool_discard(struct mem_pool *pool, int invalidate_memory); 37 void *mem_pool_alloc(struct mem_pool *pool, size_t len); 42 void *mem_pool_calloc(struct mem_pool *pool, size_t count, size_t size); 47 char *mem_pool_strdup(struct mem_pool *pool, const char *str); 48 char *mem_pool_strndup(struct mem_pool *pool, const char *str, size_t len); 55 void mem_pool_combine(struct mem_pool *dst, struct mem_pool *src); 61 int mem_pool_contains(struct mem_pool *pool, void *mem);
|
H A D | mem-pool.c | 15 static struct mp_block *mem_pool_alloc_block(struct mem_pool *pool, in mem_pool_alloc_block() 38 void mem_pool_init(struct mem_pool *pool, size_t initial_size) in mem_pool_init() 47 void mem_pool_discard(struct mem_pool *pool, int invalidate_memory) in mem_pool_discard() 67 void *mem_pool_alloc(struct mem_pool *pool, size_t len) in mem_pool_alloc() 92 void *mem_pool_calloc(struct mem_pool *pool, size_t count, size_t size) in mem_pool_calloc() 100 char *mem_pool_strdup(struct mem_pool *pool, const char *str) in mem_pool_strdup() 108 char *mem_pool_strndup(struct mem_pool *pool, const char *str, size_t len) in mem_pool_strndup() 118 int mem_pool_contains(struct mem_pool *pool, void *mem) in mem_pool_contains() 131 void mem_pool_combine(struct mem_pool *dst, struct mem_pool *src) in mem_pool_combine()
|
/dports/devel/git-svn/git-2.34.1/ |
H A D | mem-pool.h | 11 struct mem_pool { struct 27 void mem_pool_init(struct mem_pool *pool, size_t initial_size); 32 void mem_pool_discard(struct mem_pool *pool, int invalidate_memory); 37 void *mem_pool_alloc(struct mem_pool *pool, size_t len); 42 void *mem_pool_calloc(struct mem_pool *pool, size_t count, size_t size); 47 char *mem_pool_strdup(struct mem_pool *pool, const char *str); 48 char *mem_pool_strndup(struct mem_pool *pool, const char *str, size_t len); 55 void mem_pool_combine(struct mem_pool *dst, struct mem_pool *src); 61 int mem_pool_contains(struct mem_pool *pool, void *mem);
|
H A D | mem-pool.c | 15 static struct mp_block *mem_pool_alloc_block(struct mem_pool *pool, in mem_pool_alloc_block() 38 void mem_pool_init(struct mem_pool *pool, size_t initial_size) in mem_pool_init() 47 void mem_pool_discard(struct mem_pool *pool, int invalidate_memory) in mem_pool_discard() 67 void *mem_pool_alloc(struct mem_pool *pool, size_t len) in mem_pool_alloc() 92 void *mem_pool_calloc(struct mem_pool *pool, size_t count, size_t size) in mem_pool_calloc() 100 char *mem_pool_strdup(struct mem_pool *pool, const char *str) in mem_pool_strdup() 108 char *mem_pool_strndup(struct mem_pool *pool, const char *str, size_t len) in mem_pool_strndup() 118 int mem_pool_contains(struct mem_pool *pool, void *mem) in mem_pool_contains() 131 void mem_pool_combine(struct mem_pool *dst, struct mem_pool *src) in mem_pool_combine()
|
/dports/devel/git-gui/git-2.34.1/ |
H A D | mem-pool.h | 11 struct mem_pool { struct 27 void mem_pool_init(struct mem_pool *pool, size_t initial_size); 32 void mem_pool_discard(struct mem_pool *pool, int invalidate_memory); 37 void *mem_pool_alloc(struct mem_pool *pool, size_t len); 42 void *mem_pool_calloc(struct mem_pool *pool, size_t count, size_t size); 47 char *mem_pool_strdup(struct mem_pool *pool, const char *str); 48 char *mem_pool_strndup(struct mem_pool *pool, const char *str, size_t len); 55 void mem_pool_combine(struct mem_pool *dst, struct mem_pool *src); 61 int mem_pool_contains(struct mem_pool *pool, void *mem);
|
H A D | mem-pool.c | 15 static struct mp_block *mem_pool_alloc_block(struct mem_pool *pool, in mem_pool_alloc_block() 38 void mem_pool_init(struct mem_pool *pool, size_t initial_size) in mem_pool_init() 47 void mem_pool_discard(struct mem_pool *pool, int invalidate_memory) in mem_pool_discard() 67 void *mem_pool_alloc(struct mem_pool *pool, size_t len) in mem_pool_alloc() 92 void *mem_pool_calloc(struct mem_pool *pool, size_t count, size_t size) in mem_pool_calloc() 100 char *mem_pool_strdup(struct mem_pool *pool, const char *str) in mem_pool_strdup() 108 char *mem_pool_strndup(struct mem_pool *pool, const char *str, size_t len) in mem_pool_strndup() 118 int mem_pool_contains(struct mem_pool *pool, void *mem) in mem_pool_contains() 131 void mem_pool_combine(struct mem_pool *dst, struct mem_pool *src) in mem_pool_combine()
|
/dports/devel/git/git-2.34.1/ |
H A D | mem-pool.h | 11 struct mem_pool { struct 27 void mem_pool_init(struct mem_pool *pool, size_t initial_size); 32 void mem_pool_discard(struct mem_pool *pool, int invalidate_memory); 37 void *mem_pool_alloc(struct mem_pool *pool, size_t len); 42 void *mem_pool_calloc(struct mem_pool *pool, size_t count, size_t size); 47 char *mem_pool_strdup(struct mem_pool *pool, const char *str); 48 char *mem_pool_strndup(struct mem_pool *pool, const char *str, size_t len); 55 void mem_pool_combine(struct mem_pool *dst, struct mem_pool *src); 61 int mem_pool_contains(struct mem_pool *pool, void *mem);
|
H A D | mem-pool.c | 15 static struct mp_block *mem_pool_alloc_block(struct mem_pool *pool, in mem_pool_alloc_block() 38 void mem_pool_init(struct mem_pool *pool, size_t initial_size) in mem_pool_init() 47 void mem_pool_discard(struct mem_pool *pool, int invalidate_memory) in mem_pool_discard() 67 void *mem_pool_alloc(struct mem_pool *pool, size_t len) in mem_pool_alloc() 92 void *mem_pool_calloc(struct mem_pool *pool, size_t count, size_t size) in mem_pool_calloc() 100 char *mem_pool_strdup(struct mem_pool *pool, const char *str) in mem_pool_strdup() 108 char *mem_pool_strndup(struct mem_pool *pool, const char *str, size_t len) in mem_pool_strndup() 118 int mem_pool_contains(struct mem_pool *pool, void *mem) in mem_pool_contains() 131 void mem_pool_combine(struct mem_pool *dst, struct mem_pool *src) in mem_pool_combine()
|
/dports/devel/git-cvs/git-2.34.1/ |
H A D | mem-pool.h | 11 struct mem_pool { struct 27 void mem_pool_init(struct mem_pool *pool, size_t initial_size); 32 void mem_pool_discard(struct mem_pool *pool, int invalidate_memory); 37 void *mem_pool_alloc(struct mem_pool *pool, size_t len); 42 void *mem_pool_calloc(struct mem_pool *pool, size_t count, size_t size); 47 char *mem_pool_strdup(struct mem_pool *pool, const char *str); 48 char *mem_pool_strndup(struct mem_pool *pool, const char *str, size_t len); 55 void mem_pool_combine(struct mem_pool *dst, struct mem_pool *src); 61 int mem_pool_contains(struct mem_pool *pool, void *mem);
|
H A D | mem-pool.c | 15 static struct mp_block *mem_pool_alloc_block(struct mem_pool *pool, in mem_pool_alloc_block() 38 void mem_pool_init(struct mem_pool *pool, size_t initial_size) in mem_pool_init() 47 void mem_pool_discard(struct mem_pool *pool, int invalidate_memory) in mem_pool_discard() 67 void *mem_pool_alloc(struct mem_pool *pool, size_t len) in mem_pool_alloc() 92 void *mem_pool_calloc(struct mem_pool *pool, size_t count, size_t size) in mem_pool_calloc() 100 char *mem_pool_strdup(struct mem_pool *pool, const char *str) in mem_pool_strdup() 108 char *mem_pool_strndup(struct mem_pool *pool, const char *str, size_t len) in mem_pool_strndup() 118 int mem_pool_contains(struct mem_pool *pool, void *mem) in mem_pool_contains() 131 void mem_pool_combine(struct mem_pool *dst, struct mem_pool *src) in mem_pool_combine()
|
/dports/devel/ncc/ncc-2.8/ |
H A D | mem_pool.h | 16 TXX class mem_pool 24 mem_pool (); 37 TXX mem_pool<X>::mem_pool () in mem_pool() function 43 TXX int mem_pool<X>::alloc () in alloc() 54 TXX X &mem_pool<X>::operator [] (int i) 59 TXX void mem_pool<X>::pop () in pop() 64 TXX void mem_pool<X>::copy (X **di) in copy() 76 TXX void mem_pool<X>::destroy () in destroy()
|
/dports/www/nginx-full/njs-0.7.1/src/ |
H A D | njs_module.c | 107 lhq.pool = vm->mem_pool; in njs_module_reset() 214 njs_mp_free(parser->vm->mem_pool, text.start); in njs_parser_module() 232 njs_mp_free(parser->vm->mem_pool, temp); in njs_parser_module_lambda_after() 260 njs_mp_free(parser->vm->mem_pool, temp); in njs_parser_module_lambda_after() 351 njs_mp_free(vm->mem_pool, file.start); in njs_module_absolute_path() 399 njs_mp_free(vm->mem_pool, file.start); in njs_module_relative_path() 441 njs_mp_free(vm->mem_pool, text->start); in njs_module_read() 523 lhq.pool = vm->mem_pool; in njs_module_find() 559 lhq.pool = vm->mem_pool; in njs_module_add() 569 njs_mp_free(vm->mem_pool, module->name.start); in njs_module_add() [all …]
|
/dports/databases/redis-devel/redis-0e5b813/tests/modules/ |
H A D | datatype2.c | 85 RedisModuleDict *mem_pool[MAX_DB]; variable 181 RedisModule_FreeDict(NULL, mem_pool[dbid]); in MemPoolFreeDb() 182 mem_pool[dbid] = RedisModule_CreateDict(NULL); in MemPoolFreeDb() 212 RedisModuleDict *tmp = mem_pool[ei->dbnum_first]; in swapDbCallback() 213 mem_pool[ei->dbnum_first] = mem_pool[ei->dbnum_second]; in swapDbCallback() 214 mem_pool[ei->dbnum_second] = tmp; in swapDbCallback() 267 RedisModule_DictSet(mem_pool[RedisModule_GetSelectedDb(ctx)], argv[1], mem); in MemAlloc_RedisCommand() 478 RedisModule_DictSet(mem_pool[RedisModule_GetSelectedDb(ctx)], argv[1], mem); in MemAllocAndWrite_RedisCommand() 533 RedisModule_DictSet(mem_pool[dbid], (RedisModuleString *)key, head); in MemAllocRdbLoad() 608 RedisModule_DictDel(mem_pool[dbid], (RedisModuleString *)key, &oldval); in MemAllocUnlink2() [all …]
|
/dports/audio/supercollider/SuperCollider-3.11.0-Source/external_libraries/TLSF-2.4.6/src/ |
H A D | tlsf.c | 497 tlsf = (tlsf_t *) mem_pool; in init_memory_pool() 500 mp = mem_pool; in init_memory_pool() 505 mp = mem_pool; in init_memory_pool() 532 tlsf_t *tlsf = (tlsf_t *) mem_pool; in add_new_area() 602 free_ex(b0->ptr.buffer, mem_pool); in add_new_area() 608 size_t get_used_size(void *mem_pool) in get_used_size() argument 619 size_t get_max_size(void *mem_pool) in get_max_size() argument 633 tlsf_t *tlsf = (tlsf_t *) mem_pool; in destroy_memory_pool() 724 tlsf_t *tlsf = (tlsf_t *) mem_pool; in malloc_ex() 838 free_ex(ptr, mem_pool); in realloc_ex() [all …]
|
/dports/audio/sc3-plugins/sc3-plugins-Version-3.9.0/external_libraries/TLSF-2.4.6/src/ |
H A D | tlsf.c | 497 tlsf = (tlsf_t *) mem_pool; 500 mp = mem_pool; 505 mp = mem_pool; 532 tlsf_t *tlsf = (tlsf_t *) mem_pool; 602 free_ex(b0->ptr.buffer, mem_pool); 608 size_t get_used_size(void *mem_pool) 619 size_t get_max_size(void *mem_pool) 633 tlsf_t *tlsf = (tlsf_t *) mem_pool; 724 tlsf_t *tlsf = (tlsf_t *) mem_pool; 838 free_ex(ptr, mem_pool); [all …]
|
/dports/lang/clover/mesa-21.3.6/src/gallium/frontends/nine/ |
H A D | nine_queue.c | 65 void *mem_pool; member 130 return cmdbuf->mem_pool + offset; in nine_queue_get() 204 return cmdbuf->mem_pool + offset; in nine_queue_alloc() 238 ctx->pool[i].mem_pool = MALLOC(NINE_QUEUE_SIZE); in nine_queue_create() 239 if (!ctx->pool[i].mem_pool) in nine_queue_create() 256 if (ctx->pool[i].mem_pool) in nine_queue_create() 257 FREE(ctx->pool[i].mem_pool); in nine_queue_create() 276 FREE(ctx->pool[i].mem_pool); in nine_queue_delete()
|
/dports/graphics/libosmesa/mesa-21.3.6/src/gallium/frontends/nine/ |
H A D | nine_queue.c | 65 void *mem_pool; member 130 return cmdbuf->mem_pool + offset; in nine_queue_get() 204 return cmdbuf->mem_pool + offset; in nine_queue_alloc() 238 ctx->pool[i].mem_pool = MALLOC(NINE_QUEUE_SIZE); in nine_queue_create() 239 if (!ctx->pool[i].mem_pool) in nine_queue_create() 256 if (ctx->pool[i].mem_pool) in nine_queue_create() 257 FREE(ctx->pool[i].mem_pool); in nine_queue_create() 276 FREE(ctx->pool[i].mem_pool); in nine_queue_delete()
|
/dports/graphics/libosmesa-gallium/mesa-21.3.6/src/gallium/frontends/nine/ |
H A D | nine_queue.c | 65 void *mem_pool; member 130 return cmdbuf->mem_pool + offset; in nine_queue_get() 204 return cmdbuf->mem_pool + offset; in nine_queue_alloc() 238 ctx->pool[i].mem_pool = MALLOC(NINE_QUEUE_SIZE); in nine_queue_create() 239 if (!ctx->pool[i].mem_pool) in nine_queue_create() 256 if (ctx->pool[i].mem_pool) in nine_queue_create() 257 FREE(ctx->pool[i].mem_pool); in nine_queue_create() 276 FREE(ctx->pool[i].mem_pool); in nine_queue_delete()
|
/dports/graphics/mesa-libs/mesa-21.3.6/src/gallium/frontends/nine/ |
H A D | nine_queue.c | 65 void *mem_pool; member 130 return cmdbuf->mem_pool + offset; in nine_queue_get() 204 return cmdbuf->mem_pool + offset; in nine_queue_alloc() 238 ctx->pool[i].mem_pool = MALLOC(NINE_QUEUE_SIZE); in nine_queue_create() 239 if (!ctx->pool[i].mem_pool) in nine_queue_create() 256 if (ctx->pool[i].mem_pool) in nine_queue_create() 257 FREE(ctx->pool[i].mem_pool); in nine_queue_create() 276 FREE(ctx->pool[i].mem_pool); in nine_queue_delete()
|
/dports/graphics/mesa-gallium-vdpau/mesa-21.3.6/src/gallium/frontends/nine/ |
H A D | nine_queue.c | 65 void *mem_pool; member 130 return cmdbuf->mem_pool + offset; in nine_queue_get() 204 return cmdbuf->mem_pool + offset; in nine_queue_alloc() 238 ctx->pool[i].mem_pool = MALLOC(NINE_QUEUE_SIZE); in nine_queue_create() 239 if (!ctx->pool[i].mem_pool) in nine_queue_create() 256 if (ctx->pool[i].mem_pool) in nine_queue_create() 257 FREE(ctx->pool[i].mem_pool); in nine_queue_create() 276 FREE(ctx->pool[i].mem_pool); in nine_queue_delete()
|