Home
last modified time | relevance | path

Searched refs:pool (Results 1 – 25 of 30) 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_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.h89 typedef void *(*nxt_mem_proto_alloc_t)(void *pool, size_t size);
90 typedef void (*nxt_mem_proto_free_t)(void *pool, void *p);
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_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()
238 query->pool = mp; in nxt_tstr_query_init()
H A Dnxt_var.c29 nxt_mp_t *pool; member
135 ref->name = nxt_str_dup(state->pool, NULL, name); in nxt_var_ref_get()
219 value = nxt_mp_zget(cache->pool, sizeof(nxt_str_t)); in nxt_var_cache_value()
237 lhq.pool = cache->pool; in nxt_var_cache_value()
340 var = nxt_mp_get(state->pool, size); in nxt_var_compile()
500 nxt_array_init(&parts, cache->pool, sizeof(nxt_str_t *)); in nxt_var_interpreter()
526 p = nxt_mp_nget(cache->pool, length); in nxt_var_interpreter()
H A Dnxt_js.c21 nxt_mp_t *pool; member
93 jcf->pool = mp; in nxt_js_conf_new()
165 p = nxt_mp_nget(jcf->pool, size); in nxt_js_vm_create()
223 module->text.start = nxt_mp_nget(jcf->pool, text->length); in nxt_js_add_module()
257 start = nxt_mp_nget(jcf->pool, size); in nxt_js_add_tpl()
273 js = nxt_mp_get(jcf->pool, sizeof(nxt_js_t)); in nxt_js_add_tpl()
317 start = nxt_mp_nget(jcf->pool, size); in nxt_js_compile()
358 start = nxt_mp_nget(jcf->pool, str->length); in nxt_js_test()
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_conf_validation.c1502 p = nxt_mp_nget(vldt->pool, size); in nxt_conf_vldt_error()
1541 nxt_mp_t *pool; member
1555 if (nxt_slow_path(ctx.pool == NULL)) { in nxt_conf_vldt_mtypes()
1568 nxt_mp_destroy(ctx.pool); in nxt_conf_vldt_mtypes()
1654 sa = nxt_sockaddr_parse(vldt->pool, &str); in nxt_conf_vldt_listener()
2223 p = nxt_mp_nget(vldt->pool, name->length); in nxt_conf_vldt_match_encoded_patterns_set_member()
2282 p = nxt_mp_nget(vldt->pool, pattern.length); in nxt_conf_vldt_match_encoded_pattern()
2815 ret = nxt_conf_map_object(vldt->pool, value, in nxt_conf_vldt_processes()
3093 ret = nxt_conf_map_object(vldt->pool, value, in nxt_conf_vldt_clone_procmap()
3307 sa = nxt_sockaddr_parse(vldt->pool, name); in nxt_conf_vldt_server()
[all …]
H A Dnxt_var.h43 nxt_mp_t *pool; member
H A Dnxt_tstr.h17 nxt_mp_t *pool; member
H A Dnxt_controller.c19 nxt_mp_t *pool; member
371 if (nxt_slow_path(vldt.pool == NULL)) { in nxt_controller_start()
388 nxt_mp_destroy(vldt.pool); in nxt_controller_start()
399 nxt_mp_destroy(vldt.pool); in nxt_controller_start()
402 nxt_controller_conf.pool = mp; in nxt_controller_start()
530 nxt_controller_conf.pool = mp; in nxt_controller_conf_default()
1390 vldt.pool = c->mem_pool; in nxt_controller_process_config()
1419 req->conf.pool = mp; in nxt_controller_process_config()
1473 vldt.pool = c->mem_pool; in nxt_controller_process_config()
1502 req->conf.pool = mp; in nxt_controller_process_config()
[all …]
H A Dnxt_http_variables.c155 lower = nxt_str_alloc(state->pool, str.length); in nxt_http_unknown_var_ref()
178 hash = nxt_http_header_hash(state->pool, &str); in nxt_http_unknown_var_ref()
194 hash = nxt_http_argument_hash(state->pool, &str); in nxt_http_unknown_var_ref()
210 hash = nxt_http_cookie_hash(state->pool, &str); in nxt_http_unknown_var_ref()
219 ref->data = nxt_var_field_new(state->pool, &str, (uint32_t) hash); in nxt_http_unknown_var_ref()
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.c1586 lhq.pool = rt->mem_pool; in nxt_runtime_process_get()
1628 lhq.pool = rt->mem_pool; in nxt_runtime_process_add()
1675 lhq.pool = rt->mem_pool; in nxt_runtime_process_remove()
H A Dnxt_application.c1213 lhq.pool = rt->mem_pool; in nxt_proto_process_add()
1242 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()
H A Dnxt_http_static.c1060 lhq.pool = mp; in nxt_http_static_mtypes_hash_add()
H A Dnxt_http_request.c285 r->tstr_cache.var.pool = mp; in nxt_http_request_create()
/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