Home
last modified time | relevance | path

Searched refs:pool (Results 1 – 25 of 32) sorted by relevance

12

/unit/src/
H A Dnxt_vector.c12 const nxt_mem_proto_t *proto, void *pool) in nxt_vector_create() argument
32 const nxt_mem_proto_t *proto, void *pool) in nxt_vector_init() argument
34 vector->start = proto->alloc(pool, items * item_size); in nxt_vector_init()
49 void *pool) in nxt_vector_destroy() argument
54 proto->free(pool, vector->start); in nxt_vector_destroy()
63 proto->free(pool, vector->start); in nxt_vector_destroy()
68 proto->free(pool, vector); in nxt_vector_destroy()
96 start = proto->alloc(pool, size); in nxt_vector_add()
111 proto->free(pool, old); in nxt_vector_add()
125 void *pool) in nxt_vector_zero_add() argument
[all …]
H A Dnxt_hash.h14 void *pool; member
31 lhq->pool = h->pool; in nxt_hash_insert()
41 lhq->pool = h->pool; in nxt_hash_delete()
H A Dnxt_vector.h32 const nxt_mem_proto_t *proto, void *pool);
34 size_t item_size, const nxt_mem_proto_t *proto, void *pool);
36 const nxt_mem_proto_t *proto, void *pool);
38 const nxt_mem_proto_t *proto, void *pool);
40 const nxt_mem_proto_t *proto, void *pool);
H A Dnxt_tstr.c34 nxt_mp_t *pool; member
64 state->pool = mp; in nxt_tstr_state_new()
93 tstr = nxt_mp_get(state->pool, sizeof(nxt_tstr_t)); in nxt_tstr_compile()
100 tstr->str.start = nxt_mp_nget(state->pool, tstr->str.length); in nxt_tstr_compile()
136 tstr->u.var = nxt_var_compile(&tstr->str, state->pool, in nxt_tstr_compile()
230 query->pool = mp; in nxt_tstr_query_init()
H A Dnxt_lvlhsh.c148 void *pool; member
465 lvl = proto->alloc(lhq->pool, size * (sizeof(void *))); in nxt_lvlhsh_convert_bucket_to_level()
491 q.pool = lhq->pool; in nxt_lvlhsh_convert_bucket_to_level()
505 proto->free(lhq->pool, bucket); in nxt_lvlhsh_convert_bucket_to_level()
621 proto->free(lhq->pool, level); in nxt_lvlhsh_free_level()
673 lhq->proto->free(lhq->pool, lvl); in nxt_lvlhsh_level_delete()
710 proto->free(lhq->pool, bucket); in nxt_lvlhsh_bucket_delete()
922 peek->proto->free(peek->pool, level); in nxt_lvlhsh_level_peek()
959 proto->free(peek->pool, bucket); in nxt_lvlhsh_bucket_peek()
973 void *pool) in nxt_lvlhsh_retrieve() argument
[all …]
H A Dnxt_main.h86 typedef void *(*nxt_mem_proto_alloc_t)(void *pool, size_t size);
87 typedef void (*nxt_mem_proto_free_t)(void *pool, void *p);
H A Dnxt_js.c16 nxt_mp_t *pool; member
38 jcf->pool = mp; in nxt_js_conf_new()
87 start = nxt_mp_nget(jcf->pool, size); in nxt_js_add_tpl()
103 js = nxt_mp_get(jcf->pool, sizeof(nxt_js_t)); in nxt_js_add_tpl()
140 start = nxt_mp_nget(jcf->pool, size); in nxt_js_compile()
177 start = nxt_mp_nget(jcf->pool, str->length); in nxt_js_test()
H A Dnxt_mp.h116 NXT_EXPORT void *nxt_mp_lvlhsh_alloc(void *pool, size_t size);
117 NXT_EXPORT void nxt_mp_lvlhsh_free(void *pool, void *p);
H A Dnxt_lvlhsh.h95 void *pool; member
193 const nxt_lvlhsh_proto_t *proto, void *pool);
H A Dnxt_port_rpc.c150 lhq.pool = port->mem_pool; in nxt_port_rpc_register_handler_ex()
219 lhq.pool = port->mem_pool; in nxt_port_rpc_ex_set_peer()
266 lhq.pool = port->mem_pool; in nxt_port_rpc_remove_from_peers()
323 lhq.pool = port->mem_pool; in nxt_port_rpc_handler()
379 lhq.pool = port->mem_pool; in nxt_port_rpc_remove_peer()
441 lhq.pool = port->mem_pool; in nxt_port_rpc_remove_peer()
467 lhq.pool = port->mem_pool; in nxt_port_rpc_cancel()
H A Dnxt_cache.c39 nxt_int_t nxt_cache_shm_create(nxt_mem_zone_t *pool);
64 cache->pool = mz; in nxt_cache_shm_create()
144 lhq.pool = cache->pool; in nxt_cache_query()
429 lhq.pool = cache->pool; in nxt_cache_update()
H A Dnxt_var.c29 nxt_mp_t *pool; member
243 value = nxt_mp_zget(cache->pool, sizeof(nxt_str_t)); in nxt_var_cache_value()
257 lhq.pool = cache->pool; in nxt_var_cache_value()
518 nxt_array_init(&parts, cache->pool, sizeof(nxt_str_t *)); in nxt_var_interpreter()
544 p = nxt_mp_nget(cache->pool, length); in nxt_var_interpreter()
H A Dnxt_upstream_source.c36 lhq.pool = mp; in nxt_upstream_header_hash_add()
H A Dnxt_var.h36 nxt_mp_t *pool; member
H A Dnxt_conf_validation.c1349 p = nxt_mp_nget(vldt->pool, size); in nxt_conf_vldt_error()
1388 nxt_mp_t *pool; member
1402 if (nxt_slow_path(ctx.pool == NULL)) { in nxt_conf_vldt_mtypes()
1415 nxt_mp_destroy(ctx.pool); in nxt_conf_vldt_mtypes()
1501 sa = nxt_sockaddr_parse(vldt->pool, &str); in nxt_conf_vldt_listener()
2048 p = nxt_mp_nget(vldt->pool, name->length); in nxt_conf_vldt_match_encoded_patterns_set_member()
2107 p = nxt_mp_nget(vldt->pool, pattern.length); in nxt_conf_vldt_match_encoded_pattern()
2610 ret = nxt_conf_map_object(vldt->pool, value, in nxt_conf_vldt_processes()
2859 ret = nxt_conf_map_object(vldt->pool, value, in nxt_conf_vldt_clone_procmap()
3073 sa = nxt_sockaddr_parse(vldt->pool, name); in nxt_conf_vldt_server()
[all …]
H A Dnxt_controller.c18 nxt_mp_t *pool; member
347 if (nxt_slow_path(vldt.pool == NULL)) { in nxt_controller_start()
364 nxt_mp_destroy(vldt.pool); in nxt_controller_start()
375 nxt_mp_destroy(vldt.pool); in nxt_controller_start()
378 nxt_controller_conf.pool = mp; in nxt_controller_start()
505 nxt_controller_conf.pool = mp; in nxt_controller_conf_default()
1324 vldt.pool = c->mem_pool; in nxt_controller_process_config()
1353 req->conf.pool = mp; in nxt_controller_process_config()
1407 vldt.pool = c->mem_pool; in nxt_controller_process_config()
1436 req->conf.pool = mp; in nxt_controller_process_config()
[all …]
H A Dnxt_tstr.h17 nxt_mp_t *pool; member
H A Dnxt_cache.h21 void *pool; member
H A Dnxt_port_hash.c58 lhq->pool = NULL; in nxt_port_hash_lhq()
H A Dnxt_mp.c1065 nxt_mp_lvlhsh_alloc(void *pool, size_t size) in nxt_mp_lvlhsh_alloc() argument
1067 return nxt_mp_align(pool, size, size); in nxt_mp_lvlhsh_alloc()
1072 nxt_mp_lvlhsh_free(void *pool, void *p) in nxt_mp_lvlhsh_free() argument
1074 nxt_mp_free(pool, p); in nxt_mp_lvlhsh_free()
H A Dnxt_conf.h72 nxt_mp_t *pool; member
H A Dnxt_runtime.c1520 lhq.pool = rt->mem_pool; in nxt_runtime_process_get()
1562 lhq.pool = rt->mem_pool; in nxt_runtime_process_add()
1609 lhq.pool = rt->mem_pool; in nxt_runtime_process_remove()
H A Dnxt_application.c1157 lhq.pool = rt->mem_pool; in nxt_proto_process_add()
1186 lhq.pool = rt->mem_pool; in nxt_proto_process_remove()
H A Dnxt_port_socket.c1103 lhq.pool = port->mem_pool; in nxt_port_frag_start()
1151 lhq.pool = port->mem_pool; in nxt_port_frag_find()
/unit/src/test/
H A Dnxt_lvlhsh_test.c40 void *pool, uintptr_t key) in nxt_lvlhsh_test_add() argument
50 lhq.pool = pool; in nxt_lvlhsh_test_add()
94 void *pool, uintptr_t key) in nxt_lvlhsh_test_delete() argument
103 lhq.pool = pool; in nxt_lvlhsh_test_delete()

12